@@ -28,6 +28,14 @@ permissions:
2828 contents: read # to fetch code (actions/checkout)
2929
3030jobs:
31+ audit_dependencies:
32+ runs-on: ubuntu-latest
33+ steps:
34+ - uses: actions/checkout@v3
35+ with:
36+ persist-credentials: false
37+ - name: Audit dependencies for security vulnerabilities
38+ uses: g-rath/check-with-osv-detector@main
3139 js_based_checks:
3240 runs-on: ubuntu-latest
3341 timeout-minutes: 15
92100 run: bundle exec chusaku --exit-with-error-on-annotation
93101 - run: bundle exec rubocop
94102 - run: bundle exec brakeman --run-all-checks --exit-on-warn --format plain .
95- - run: bundle exec bundle audit --update
96103 - run: bundle exec rails db:setup
97104 - run: bundle exec rspec spec --format progress
98105 - name: Archive spec outputs
@@ -115,6 +122,7 @@ jobs:
115122 # deploy_to_ec2_staging:
116123 # if: github.event_name == 'push' && github.ref == 'refs/heads/main'
117124 # needs:
125+ # - audit_dependencies
118126 # - ruby_based_checks
119127 # - js_based_checks
120128 # uses: ./.github/workflows/deploy_to_ec2.yml
@@ -131,6 +139,7 @@ jobs:
131139 # deploy_to_ec2_production:
132140 # if: github.event_name == 'push' && github.ref == 'refs/heads/production'
133141 # needs:
142+ # - audit_dependencies
134143 # - ruby_based_checks
135144 # - js_based_checks
136145 # uses: ./.github/workflows/deploy_to_ec2.yml
@@ -152,6 +161,7 @@ jobs:
152161 # deploy_to_heroku_staging:
153162 # if: github.event_name == 'push' && github.ref == 'refs/heads/main'
154163 # needs:
164+ # - audit_dependencies
155165 # - ruby_based_checks
156166 # - js_based_checks
157167 # uses: ./.github/workflows/deploy_to_heroku.yml
@@ -165,6 +175,7 @@ jobs:
165175 # deploy_to_heroku_production:
166176 # if: github.event_name == 'push' && github.ref == 'refs/heads/production'
167177 # needs:
178+ # - audit_dependencies
168179 # - ruby_based_checks
169180 # - js_based_checks
170181 # uses: ./.github/workflows/deploy_to_heroku.yml
0 commit comments