Skip to content

Bump zgosalvez/github-actions-ensure-sha-pinned-actions #572

Bump zgosalvez/github-actions-ensure-sha-pinned-actions

Bump zgosalvez/github-actions-ensure-sha-pinned-actions #572

# 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 ]
paths:
- 'meson.build'
- '.github/workflows/**'
- '**.c'
pull_request:
# The branches below must be a subset of the branches above
branches: [ master ]
paths:
- 'meson.build'
- '.github/workflows/**'
- '**.c'
schedule:
- cron: '23 10 * * 3'
permissions: # added using https://github.com/step-security/secure-workflows
contents: read
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@1b05615854632b887b69ae1be8cbefe72d3ae423 # v2.6.0
with:
egress-policy: block
allowed-endpoints: >
api.github.com:443
github.com:443
- name: Checkout code
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: flawfinder_scan
uses: david-a-wheeler/flawfinder@c57197cd6061453f10a496f30a732bc1905918d1 # v2.0.19
with:
arguments: '--sarif ./'
output: 'flawfinder_results.sarif'
- name: Upload analysis results to GitHub Security tab
uses: github/codeql-action/upload-sarif@cdcdbb579706841c47f7063dda365e292e5cad7a # v2.13.4
with:
sarif_file: ${{github.workspace}}/flawfinder_results.sarif