Enforce ruff lint + format in CI and pre-commit, clear the baseline, and fix the CodeQL findings #491
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: Audit GHA Workflows | |
| on: | |
| pull_request: | |
| push: | |
| branches: [master, main] | |
| permissions: | |
| contents: read | |
| jobs: | |
| zizmor: | |
| name: Audit GitHub Actions | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 5 | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| persist-credentials: false | |
| - name: Install zizmor | |
| run: pip install zizmor==1.23.1 | |
| - name: Run zizmor | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: | | |
| if [ -d .github ]; then | |
| zizmor .github --gh-token "${GITHUB_TOKEN}" --min-severity medium | |
| fi |