[#50684] Migrate to httpx http ruby client #9519
Workflow file for this run
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: brakeman | |
on: | |
pull_request: | |
branches: | |
- dev | |
- release/* | |
paths: | |
- '**.rb' | |
schedule: | |
- cron: '10 6 * * 1' | |
permissions: | |
contents: read | |
jobs: | |
brakeman-scan: | |
permissions: | |
contents: read # for actions/checkout to fetch code | |
security-events: write # for github/codeql-action/upload-sarif to upload SARIF results | |
if: github.repository == 'opf/openproject' | |
name: Brakeman Scan | |
runs-on: ubuntu-latest | |
env: | |
RUBY_GC_HEAP_INIT_SLOTS: 100000 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
# FIXME: remove the ruby version once '3.2.2' is released. | |
# This is set to head to fix ruby segfaulting when brakeman is | |
# used. See https://bugs.ruby-lang.org/issues/19433 | |
ruby-version: 'head' | |
- name: Setup Brakeman | |
run: | | |
gem install brakeman | |
- name: Scan | |
run: | | |
brakeman \ | |
--ignore-config config/brakeman.ignore \ | |
--no-exit-on-warn \ | |
--no-exit-on-error \ | |
--format sarif \ | |
--output output.sarif.json | |
- name: Upload SARIF | |
uses: github/codeql-action/upload-sarif@v2 | |
with: | |
sarif_file: output.sarif.json |