Skip to content

Commit

Permalink
Added Github action for SAST scanning
Browse files Browse the repository at this point in the history
  • Loading branch information
mylesvarns committed Feb 21, 2024
1 parent ed486e4 commit 84cda8b
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: CI

on: [push]

jobs:
sast_scan:
name: Run brakeman scan
# Run this job on ubuntu-latest
runs-on: ubuntu-latest

steps:
- name: Checkout Repo
uses: actions/checkout@v2

- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache: true

- name: Run brakeman
run: bundle exec brakeman


3 changes: 3 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ gem "bootsnap", require: false
group :development, :test do
# See https://guides.rubyonrails.org/debugging_rails_applications.html#debugging-with-the-debug-gem
gem "debug", platforms: %i[ mri windows ]

# Security scanner for Ruby on Rails
gem "brakeman", require: false
end

group :development do
Expand Down
3 changes: 3 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ GEM
bindex (0.8.1)
bootsnap (1.18.3)
msgpack (~> 1.2)
brakeman (6.1.2)
racc
builder (3.2.4)
capybara (3.40.0)
addressable
Expand Down Expand Up @@ -241,6 +243,7 @@ PLATFORMS

DEPENDENCIES
bootsnap
brakeman
capybara
debug
importmap-rails
Expand Down

0 comments on commit 84cda8b

Please sign in to comment.