fix(craft): files stuff #6637
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: Run Zizmor | |
| on: | |
| push: | |
| branches: ["main"] | |
| pull_request: | |
| branches: ["**"] | |
| permissions: {} | |
| jobs: | |
| zizmor: | |
| name: zizmor | |
| runs-on: ubuntu-slim | |
| timeout-minutes: 45 | |
| permissions: | |
| security-events: write # needed for SARIF uploads | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # ratchet:actions/checkout@v6.0.2 | |
| with: | |
| persist-credentials: false | |
| - name: Detect changes | |
| id: filter | |
| uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # ratchet:dorny/paths-filter@v3 | |
| with: | |
| filters: | | |
| zizmor: | |
| - '.github/**' | |
| - name: Install the latest version of uv | |
| if: steps.filter.outputs.zizmor == 'true' || github.ref_name == 'main' | |
| uses: astral-sh/setup-uv@61cb8a9741eeb8a550a1b8544337180c0fc8476b # ratchet:astral-sh/setup-uv@v7 | |
| with: | |
| enable-cache: false | |
| version: "0.9.9" | |
| - name: Run zizmor | |
| if: steps.filter.outputs.zizmor == 'true' || github.ref_name == 'main' | |
| run: uv run --no-sync --with zizmor zizmor --format=sarif . > results.sarif | |
| env: | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Upload SARIF file | |
| if: steps.filter.outputs.zizmor == 'true' || github.ref_name == 'main' | |
| uses: github/codeql-action/upload-sarif@ba454b8ab46733eb6145342877cd148270bb77ab # ratchet:github/codeql-action/upload-sarif@codeql-bundle-v2.23.5 | |
| with: | |
| sarif_file: results.sarif | |
| category: zizmor |