Skip to content

feat: Add schedule element button #4479

feat: Add schedule element button

feat: Add schedule element button #4479

# This workflow integrates Brakeman with GitHub's Code Scanning feature
# Brakeman is a static analysis security vulnerability scanner for Ruby on Rails applications
name: Brakeman Scan
concurrency:
group: brakeman-${{ github.ref_name }}
cancel-in-progress: ${{ github.ref_name != 'main' }}
permissions:
contents: read
security-events: write
on:
push:
branches: [main]
pull_request:
# The branches below must be a subset of the branches above
branches: [main]
schedule:
- cron: "40 4 * * 2"
jobs:
brakeman-scan:
name: Brakeman Scan
runs-on: ubuntu-24.04
steps:
# Checkout the repository to the GitHub Actions runner
- name: Checkout
uses: actions/checkout@v6
# Customize the ruby version depending on your needs
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
rubygems: "latest"
# Execute Brakeman CLI and generate a SARIF output with the security issues identified during the analysis
- name: Scan
run: |
bundle exec brakeman -f sarif -o output.sarif.json .
# Upload the SARIF file generated in the previous step
- name: Upload SARIF
uses: github/codeql-action/upload-sarif@v4
if: always()
with:
sarif_file: output.sarif.json