Security Scan #68
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
| # Security scanning for container image vulnerabilities and GitHub Actions integrity | |
| name: Security Scan | |
| on: | |
| pull_request: | |
| types: | |
| - opened | |
| - synchronize | |
| - reopened | |
| - ready_for_review | |
| paths: | |
| - ".github/workflows/**" | |
| schedule: | |
| # Daily security scan at 06:00 UTC | |
| - cron: "0 6 * * *" | |
| # Allows running this workflow manually | |
| workflow_dispatch: | |
| concurrency: | |
| group: security-scan-${{ github.ref }} | |
| cancel-in-progress: ${{ github.event_name == 'pull_request' }} | |
| jobs: | |
| macaron: | |
| if: github.event.pull_request.draft == false || github.event_name != 'pull_request' | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| steps: | |
| - name: Checkout Code | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: Run Macaron Security Analysis | |
| uses: oracle/macaron@b31acfe389133a5587d9639063ec70cb84e7bc47 # v0.23.0 | |
| with: | |
| repo_path: "https://github.com/${{ github.repository }}" | |
| branch: ${{ github.head_ref || github.ref_name }} | |
| digest: ${{ github.event.pull_request.head.sha || github.sha }} | |
| policy_file: check-github-actions | |
| policy_purl: "pkg:github.com/${{ github.repository }}@.*" | |
| reports_retention_days: 90 |