Validate Actions (online checks) #35
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
| --- | |
| # yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json | |
| name: Validate Actions (online checks) | |
| on: | |
| workflow_dispatch: | |
| schedule: | |
| - cron: '22 2 * * *' | |
| permissions: {} | |
| jobs: | |
| zizmor: | |
| name: Run zizmor | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 15 | |
| permissions: | |
| security-events: write # integration with github advanced security | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| persist-credentials: false | |
| - name: Install the latest version of uv | |
| uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0 | |
| with: | |
| version-file: dev-tools/pyproject.toml | |
| enable-cache: true | |
| save-cache: false | |
| cache-dependency-glob: dev-tools/uv.lock | |
| cache-suffix: dev-tools | |
| - name: Run zizmor | |
| run: uv run zizmor --pedantic --format=sarif . > results.sarif | |
| env: | |
| UV_PROJECT: dev-tools | |
| UV_FROZEN: "1" | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Upload SARIF file | |
| uses: github/codeql-action/upload-sarif@95e58e9a2cdfd71adc6e0353d5c52f41a045d225 # v4.35.2 | |
| with: | |
| sarif_file: results.sarif | |
| category: zizmor |