Merge branch 'stable' into release-70 #245
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Bundle Audit and Brakeman | |
on: | |
push: | |
branches: | |
- '*' | |
- '**/*' | |
concurrency: | |
group: ${{ github.ref }}-audit | |
cancel-in-progress: true | |
jobs: | |
audit: | |
runs-on: ubuntu-20.04 | |
# Docker Hub image that the job executes in | |
container: ruby:3.1.6-alpine3.20 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up dependencies | |
run: | | |
apk add --no-cache $(cat .github/dependencies.txt) | |
- name: 'Install gems' | |
run: | | |
gem install bundler --version=2.5.17 | |
bundle config set --local without 'production staging development' | |
bundle install --jobs 4 --retry 3 | |
- name: Run bundle-audit | |
run: | | |
bundle exec bundle-audit check --update | |
- name: Run brakeman | |
run: | | |
bundle exec brakeman -q --no-pager --except PermitAttributes,Render |