Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,18 @@ jobs:

- name: Run tests and lint
run: bundle exec rake

audit:
name: bundle-audit
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4

- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.4'
bundler-cache: true

- name: Run bundle-audit
run: bundle exec bundle-audit check --update
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]

### Added
- **`bundle-audit` in CI** (`.github/workflows/ci.yml`). New `audit`
job runs `bundle exec bundle-audit check --update` on every push
and PR, gating merges on known CVEs in `Gemfile.lock`. Advisory
DB is refreshed on each run from `rubysec/ruby-advisory-db`. Also
available locally as `bundle exec rake audit`.
- **Dependabot config** (`.github/dependabot.yml`). Weekly bump PRs
for Bundler and GitHub Actions, with `open-pull-requests-limit: 3`
per ecosystem. `versioning-strategy: lockfile-only` on bundler, so
Expand Down
7 changes: 4 additions & 3 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@ source 'https://rubygems.org'
gemspec

group :development do
gem 'rake', '>= 13.2'
gem 'rspec', '>= 3.13'
gem 'bundler-audit', '>= 0.9'
gem 'rake', '>= 13.2'
gem 'rspec', '>= 3.13'
gem 'rubocop', '>= 1.60'
gem 'rubocop-rake', '>= 0.6'
gem 'rubocop-rspec', '>= 2.27'
gem 'simplecov', '>= 0.22'
gem 'simplecov', '>= 0.22'
end
5 changes: 5 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,8 @@ task default: %i[spec rubocop]

desc 'Alias for spec'
task test: :spec

desc 'Check Gemfile.lock against the ruby-advisory-db for known CVEs'
task :audit do
sh 'bundle exec bundle-audit check --update'
end
Loading