ci: harden GitHub Actions workflows and add zizmor scan #1
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
| name: Security scan of GitHub Actions workflows (zizmor) | |
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| permissions: {} | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
| cancel-in-progress: true | |
| jobs: | |
| zizmor: | |
| name: Scan GitHub Actions workflows | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| permissions: | |
| contents: read # needed to clone the repo | |
| steps: | |
| - name: Checkout dpctl repo | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| persist-credentials: false | |
| - name: Run zizmor | |
| uses: zizmorcore/zizmor-action@70fb788f84895a7701f5643d103d587e460b5c99 # v0.6.3 | |
| with: | |
| # Low/informational template-injection notes come from internally-defined | |
| # values (no external input), so they are reported as annotations but do not gate CI | |
| min-severity: medium | |
| advanced-security: false | |
| annotations: true | |
| inputs: .github/ |