Skip to content

Commit 29ec8d3

Browse files
authored
Merge pull request #25 from speee/ci/add-security-scanning
Add security scanning and Dependabot configuration
2 parents 5cd0ed8 + 457305b commit 29ec8d3

2 files changed

Lines changed: 55 additions & 0 deletions

File tree

.github/dependabot.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "bundler"
4+
directory: "/"
5+
schedule:
6+
interval: "weekly"
7+
day: "monday"
8+
open-pull-requests-limit: 10
9+
groups:
10+
development-dependencies:
11+
dependency-type: "development"
12+
production-dependencies:
13+
dependency-type: "production"
14+
commit-message:
15+
prefix: "deps"
16+
labels:
17+
- "dependencies"
18+
19+
- package-ecosystem: "github-actions"
20+
directory: "/"
21+
schedule:
22+
interval: "weekly"
23+
day: "monday"
24+
commit-message:
25+
prefix: "ci"
26+
labels:
27+
- "ci"

.github/workflows/security.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Security
2+
3+
on:
4+
push:
5+
branches: [master]
6+
pull_request:
7+
branches: ['**']
8+
schedule:
9+
- cron: '0 0 * * 1' # Every Monday at 00:00 UTC
10+
11+
jobs:
12+
bundle-audit:
13+
name: Bundle Audit (Dependency Check)
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v4
17+
- name: Set up Ruby
18+
uses: ruby/setup-ruby@v1
19+
with:
20+
ruby-version: '3.3'
21+
- name: Install dependencies
22+
run: bundle install --jobs 4 --retry 3
23+
- name: Install bundle-audit
24+
run: gem install bundler-audit
25+
- name: Update vulnerability database
26+
run: bundle-audit update
27+
- name: Run bundle-audit
28+
run: bundle-audit check

0 commit comments

Comments
 (0)