Skip to content

Commit

Permalink
Move bundle-audit to GitHub Actions
Browse files Browse the repository at this point in the history
Following the GitHub Actions pattern of having one check per service,
rather than one big check for faster feedback.

This also means we no longer need to bundle `bundler-audit`.
  • Loading branch information
nickcharlton committed Aug 8, 2022
1 parent ea96c83 commit 2879aa0
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 26 deletions.
3 changes: 0 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,6 @@ commands:
# Run the tests
- run: bundle exec rspec

# Check vulnerabilities
- run: bundle exec rake bundler:audit

default_job: &default_job
working_directory: ~/administrate

Expand Down
13 changes: 13 additions & 0 deletions .github/workflows/bundle-audit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
name: Bundler Audit
on: [push]

jobs:
audit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: 'Bundler Audit'
uses: andrewmcodes/bundler-audit-action@main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1 change: 0 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ gem "unicorn"
group :development, :test do
gem "appraisal"
gem "awesome_print"
gem "bundler-audit", require: false
gem "byebug"
gem "dotenv-rails"
gem "factory_bot_rails"
Expand Down
6 changes: 1 addition & 5 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,6 @@ GEM
parser (>= 2.4)
smart_properties
builder (3.2.4)
bundler-audit (0.9.1)
bundler (>= 1.2.0, < 3)
thor (~> 1.0)
byebug (11.1.3)
capybara (3.37.1)
addressable
Expand Down Expand Up @@ -338,7 +335,6 @@ DEPENDENCIES
ammeter
appraisal
awesome_print
bundler-audit
byebug
capybara
database_cleaner
Expand Down Expand Up @@ -369,4 +365,4 @@ DEPENDENCIES
yard

BUNDLED WITH
2.3.6
2.3.10
2 changes: 0 additions & 2 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,3 @@ if defined? RSpec
t.verbose = false
end
end

task default: "bundler:audit"
1 change: 0 additions & 1 deletion gemfiles/rails60.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ gem "rails", "~> 6.0.3.4"
group :development, :test do
gem "appraisal"
gem "awesome_print"
gem "bundler-audit", require: false
gem "byebug"
gem "dotenv-rails"
gem "factory_bot_rails"
Expand Down
1 change: 0 additions & 1 deletion gemfiles/rails61.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ gem "rails", "~> 6.1"
group :development, :test do
gem "appraisal"
gem "awesome_print"
gem "bundler-audit", require: false
gem "byebug"
gem "dotenv-rails"
gem "factory_bot_rails"
Expand Down
1 change: 0 additions & 1 deletion gemfiles/rails70.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ gem "rails", "~> 6.1"
group :development, :test do
gem "appraisal"
gem "awesome_print"
gem "bundler-audit", require: false
gem "byebug"
gem "dotenv-rails"
gem "factory_bot_rails"
Expand Down
12 changes: 0 additions & 12 deletions spec/example_app/lib/tasks/bundler_audit.rake

This file was deleted.

0 comments on commit 2879aa0

Please sign in to comment.