2022-11-20 12:50:38 +00:00
|
|
|
---
|
2022-11-20 15:16:04 +00:00
|
|
|
name: Flawfinder Scan
|
2022-11-20 12:50:38 +00:00
|
|
|
|
|
|
|
on:
|
2022-11-20 15:16:04 +00:00
|
|
|
push:
|
|
|
|
branches: [master, develop]
|
|
|
|
paths-ignore:
|
|
|
|
- "**.md"
|
|
|
|
- "version.properties"
|
2022-11-20 12:50:38 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
flawfinder:
|
2023-01-27 16:22:17 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
name: Flawfinder
|
2022-11-20 12:50:38 +00:00
|
|
|
|
2023-01-27 16:22:17 +00:00
|
|
|
steps:
|
|
|
|
# step 1
|
|
|
|
- name: clone application source code
|
2024-05-13 08:47:40 +00:00
|
|
|
uses: actions/checkout@v4
|
2022-11-20 12:50:38 +00:00
|
|
|
|
2023-01-27 16:22:17 +00:00
|
|
|
# step 2
|
|
|
|
- name: flawfinder_scan
|
|
|
|
uses: david-a-wheeler/flawfinder@2.0.19
|
|
|
|
with:
|
|
|
|
arguments: "--sarif ./"
|
|
|
|
output: "flawfinder_report.sarif"
|
2022-11-20 12:50:38 +00:00
|
|
|
|
2023-01-27 16:22:17 +00:00
|
|
|
# step 3
|
|
|
|
- name: save report as pipeline artifact
|
2024-05-13 08:47:40 +00:00
|
|
|
uses: actions/upload-artifact@v4
|
2023-01-27 16:22:17 +00:00
|
|
|
with:
|
|
|
|
name: flawfinder_report.sarif
|
2024-05-13 08:47:40 +00:00
|
|
|
overwrite: true
|
2023-01-27 16:22:17 +00:00
|
|
|
path: flawfinder_report.sarif
|
2022-11-20 12:50:38 +00:00
|
|
|
|
2023-01-27 16:22:17 +00:00
|
|
|
# step 4
|
|
|
|
- name: publish code scanning alerts
|
2024-05-13 08:47:40 +00:00
|
|
|
uses: github/codeql-action/upload-sarif@v3
|
2023-01-27 16:22:17 +00:00
|
|
|
with:
|
|
|
|
sarif_file: flawfinder_report.sarif
|
|
|
|
category: flawfinder
|