| # This workflow uses actions that are not certified by GitHub. |
| # They are provided by a third-party and are governed by |
| # separate terms of service, privacy policy, and support |
| # documentation. |
| |
| name: flawfinder |
| |
| permissions: |
| contents: read |
| |
| on: |
| push: |
| branches: [ "develop" ] |
| pull_request: |
| # The branches below must be a subset of the branches above |
| branches: [ "develop" ] |
| schedule: |
| - cron: '41 14 * * 3' |
| |
| jobs: |
| flawfinder: |
| name: Flawfinder |
| runs-on: ubuntu-latest |
| permissions: |
| actions: read |
| contents: read |
| security-events: write |
| steps: |
| - name: Harden Runner |
| uses: step-security/harden-runner@bf7454d06d71f1098171f2acdf0cd4708d7b5920 # v2.20.0 |
| with: |
| egress-policy: audit |
| |
| - name: Checkout code |
| uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 |
| with: |
| persist-credentials: false |
| |
| - name: flawfinder_scan |
| uses: david-a-wheeler/flawfinder@c4216b74cf2639ffa98503768bd6e4299b5440c9 # v2.0.20 |
| with: |
| arguments: '--sarif ./' |
| output: 'flawfinder_results.sarif' |
| |
| - name: Upload analysis results to GitHub Security tab |
| uses: github/codeql-action/upload-sarif@99df26d4f13ea111d4ec1a7dddef6063f76b97e9 # v4.37.0 |
| with: |
| sarif_file: ${{github.workspace}}/flawfinder_results.sarif |