supply-chain-scan #22
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
| name: supply-chain-scan | |
| on: | |
| push: | |
| pull_request: | |
| schedule: | |
| - cron: '17 3 * * *' | |
| workflow_dispatch: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read | |
| jobs: | |
| scan: | |
| name: gitleaks / osv-scanner / trivy-fs | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| steps: | |
| - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 | |
| with: | |
| fetch-depth: 0 | |
| - name: gitleaks (block) | |
| run: | | |
| curl -sSfL https://github.com/gitleaks/gitleaks/releases/download/v8.30.1/gitleaks_8.30.1_linux_x64.tar.gz -o /tmp/gitleaks.tar.gz | |
| tar -xzf /tmp/gitleaks.tar.gz -C /tmp gitleaks | |
| /tmp/gitleaks detect --source . --log-opts '--all' --redact --no-banner | |
| - name: osv-scanner (report - not a gate) | |
| run: | | |
| curl -sSfL https://github.com/google/osv-scanner/releases/download/v2.5.1/osv-scanner_linux_amd64 -o /tmp/osv-scanner | |
| chmod +x /tmp/osv-scanner | |
| /tmp/osv-scanner scan -r . || true | |
| - name: trivy fs (report - app transitives have no fix path, so no exit-code gate) | |
| uses: aquasecurity/trivy-action@57a97c7e7821a5776cebc9bb87c984fa69cba8f1 | |
| with: | |
| scan-type: fs | |
| scan-ref: . | |
| scanners: vuln | |
| format: table | |
| severity: HIGH,CRITICAL | |
| cache: false |