Skip to content

Commit

Permalink
Merge pull request #14 from ahasunos/add-bundler-audit
Browse files Browse the repository at this point in the history
ci: add bundler audit to scan vulnerabilities
  • Loading branch information
ahasunos authored Sep 5, 2024
2 parents b289025 + 78209c6 commit 17c130a
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/bundler-audit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Bundler Audit / Vulnerability Scan

on:
schedule:
- cron: '0 0 * * 0' # Weekly on Sundays at midnight
push:
branches:
- main
pull_request:
branches:
- main

jobs:
audit:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.2

- name: Install dependencies
run: bundle install

- name: Run Bundler Audit
run: bundle exec bundler-audit check --update
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ gemspec
gemspec

group :development do
gem 'bundler-audit', require: false
gem 'byebug'
gem 'rake', '~> 13.0'
gem 'rspec', '~> 3.0'
Expand Down

0 comments on commit 17c130a

Please sign in to comment.