ci: add reusable Security Scan workflow (zizmor), pin actions to SHAs #2
Workflow file for this run
This file contains hidden or 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
| # Self-caller for the reusable Security Scan workflow. | |
| # | |
| # This repo hosts the reusable workflow (reusable_security_scan.yml), so it | |
| # scans itself here via a local reference. Other OpenJobDescription repos add | |
| # an equivalent stub that calls this workflow by full path, e.g.: | |
| # | |
| # jobs: | |
| # security-scan: | |
| # uses: OpenJobDescription/.github/.github/workflows/reusable_security_scan.yml@mainline | |
| # | |
| # Keeping the scan on every push and PR to mainline means workflow changes are | |
| # gated before they merge. | |
| name: "Security Scan" | |
| on: | |
| push: | |
| branches: [ "mainline" ] | |
| pull_request: | |
| branches: [ "mainline" ] | |
| schedule: | |
| - cron: '0 8 * * MON' | |
| permissions: {} | |
| jobs: | |
| security-scan: | |
| name: Security Scan | |
| uses: ./.github/workflows/reusable_security_scan.yml | |
| permissions: | |
| # The reusable workflow's zizmor job checks out the repo (contents: read). | |
| # A caller cannot grant a called workflow more than it declares here. | |
| contents: read |