Repository navigation
docs: include the cheat sheet in the Projects catalogue #13
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
| # sscsb: vulnerability scanning — Trivy (fs: vuln+secret+misconfig → SARIF) | |
| # and OSV-Scanner V2 via Google's reusable workflow (lockfile-exact). | |
| name: Vulnerability Scan | |
| on: | |
| push: | |
| branches: ["main"] | |
| pull_request: | |
| schedule: | |
| - cron: "17 4 * * 1" | |
| permissions: | |
| contents: read | |
| jobs: | |
| trivy: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| security-events: write | |
| steps: | |
| - name: Harden runner | |
| uses: step-security/harden-runner@bf7454d06d71f1098171f2acdf0cd4708d7b5920 # v2.20.0 | |
| with: | |
| egress-policy: audit | |
| - name: Checkout | |
| uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| with: | |
| persist-credentials: false | |
| - name: Trivy filesystem scan | |
| uses: aquasecurity/trivy-action@ed142fd0673e97e23eac54620cfb913e5ce36c25 # v0.36.0 | |
| with: | |
| scan-type: fs | |
| scanners: vuln,secret,misconfig | |
| format: sarif | |
| output: trivy.sarif | |
| - name: Upload SARIF | |
| uses: github/codeql-action/upload-sarif@99df26d4f13ea111d4ec1a7dddef6063f76b97e9 # v4.37.0 | |
| with: | |
| sarif_file: trivy.sarif | |
| # Google's recommended consumption of OSV-Scanner is this reusable workflow. | |
| # Reusable-workflow jobs carry their own steps; permissions below are what it documents. | |
| osv-scanner: | |
| permissions: | |
| actions: read | |
| contents: read | |
| security-events: write | |
| uses: google/osv-scanner-action/.github/workflows/osv-scanner-reusable.yml@9a498708959aeaef5ef730655706c5a1df1edbc2 # v2.3.8 | |
| with: | |
| scan-args: |- | |
| --recursive | |
| ./ |