2022-02-14 05:18:13 +01:00
|
|
|
# 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
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ master ]
|
|
|
|
pull_request:
|
|
|
|
# The branches below must be a subset of the branches above
|
|
|
|
branches: [ master ]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
flawfinder:
|
|
|
|
name: Flawfinder
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
permissions:
|
|
|
|
actions: read
|
|
|
|
contents: read
|
|
|
|
security-events: write
|
|
|
|
steps:
|
|
|
|
- name: Checkout code
|
2023-09-07 02:40:37 +02:00
|
|
|
uses: actions/checkout@v4
|
2022-02-14 05:18:13 +01:00
|
|
|
|
|
|
|
- name: flawfinder_scan
|
2022-08-23 12:07:05 +02:00
|
|
|
uses: david-a-wheeler/flawfinder@2.0.19
|
2022-02-14 05:18:13 +01:00
|
|
|
with:
|
|
|
|
arguments: '--sarif ./'
|
|
|
|
output: 'flawfinder_results.sarif'
|
|
|
|
|
|
|
|
- name: Upload analysis results to GitHub Security tab
|
2023-12-19 04:13:48 +01:00
|
|
|
uses: github/codeql-action/upload-sarif@v3
|
2022-02-14 05:18:13 +01:00
|
|
|
with:
|
|
|
|
sarif_file: ${{github.workspace}}/flawfinder_results.sarif
|