Browse Source

Add gem audit pipeline stage

pull/301/head
baarkerlounger 3 years ago
parent
commit
ee885f8258
  1. 17
      .github/workflows/pipeline.yml
  2. 1
      Gemfile
  3. 4
      Gemfile.lock

17
.github/workflows/pipeline.yml

@ -91,6 +91,23 @@ jobs:
run: | run: |
bundle exec rubocop bundle exec rubocop
audit:
name: Audit dependencies
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
# runs 'bundle install' and caches installed gems automatically
bundler-cache: true
- name: Audit
run: |
bundle exec bundler-audit
deploy: deploy:
name: Deploy name: Deploy

1
Gemfile

@ -58,6 +58,7 @@ group :development, :test do
gem "byebug", platforms: %i[mri mingw x64_mingw] gem "byebug", platforms: %i[mri mingw x64_mingw]
gem "dotenv-rails" gem "dotenv-rails"
gem "pry-byebug" gem "pry-byebug"
gem "bundler-audit"
end end
group :development do group :development do

4
Gemfile.lock

@ -131,6 +131,9 @@ GEM
bootsnap (1.10.3) bootsnap (1.10.3)
msgpack (~> 1.2) msgpack (~> 1.2)
builder (3.2.4) builder (3.2.4)
bundler-audit (0.9.0.1)
bundler (>= 1.2.0, < 3)
thor (~> 1.0)
byebug (11.1.3) byebug (11.1.3)
capybara (3.36.0) capybara (3.36.0)
addressable addressable
@ -466,6 +469,7 @@ DEPENDENCIES
activeadmin! activeadmin!
aws-sdk-s3 aws-sdk-s3
bootsnap (>= 1.4.4) bootsnap (>= 1.4.4)
bundler-audit
byebug byebug
capybara capybara
capybara-lockstep capybara-lockstep

Loading…
Cancel
Save