add zizmor to scan workflows (#5945)
Before adoption: this commit came in with the history the project adopted, so no landing records it.
authored by David Lord · committed by GitHub · parents a29f88c, 560c119 · Browse files · 5 files·+51 added−9 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
5 files+51 added−9 removed
- other:+51 added−9 removed
Provenance
- Commit
4774385- Tree
b618c92- Author
David Lord <davidism@gmail.com>- Committer
GitHub <noreply@github.com>- Parent 1
a29f88c- Parent 2
560c119
5 files changed+51 added−9 removed
modified:.github/workflows/lock.yaml+6 added-4 removed
5 unmodified lines6789101112131011121314151617181920212223242 unmodified lines5 unmodified lines
on: schedule: - cron: '0 0 * * *'permissions: issues: write pull-requests: write discussions: writepermissions: {}concurrency: group: lock cancel-in-progress: truejobs: lock: runs-on: ubuntu-latest permissions: issues: write pull-requests: write discussions: write steps: - uses: dessant/lock-threads@7266a7ce5c1df01b1c6db85bf8cd86c737dadbe7 # v6.0.0 with: issue-inactive-days: 142 unmodified linesmodified:.github/workflows/pre-commit.yaml+6 added-2 removed
12345678910111213141516171819205 unmodified lines262728292425name: pre-commiton: pull_request: push: branches: [main, stable]permissions: {}concurrency: group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} cancel-in-progress: truejobs: main: runs-on: ubuntu-latest steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: persist-credentials: false - uses: astral-sh/setup-uv@61cb8a9741eeb8a550a1b8544337180c0fc8476b # v7.2.0 with: enable-cache: true prune-cache: false5 unmodified lines with: path: ~/.cache/pre-commit key: pre-commit|${{ hashFiles('pyproject.toml', '.pre-commit-config.yaml') }} - run: uv run --locked --group pre-commit pre-commit run --show-diff-on-failure --color=always --all-files - uses: pre-commit-ci/lite-action@5d6cc0eb514c891a40562a58a8e71576c5c7fb43 # v1.1.0 if: ${{ !cancelled() }}modified:.github/workflows/publish.yaml+6 added-2 removed
1234567891011123 unmodified lines1617181916202122232415 unmodified lines4041424340444546474814 unmodified linesname: Publishon: push: tags: ['*']permissions: {}concurrency: group: publish-${{ github.event.push.ref }} cancel-in-progress: truejobs: build: runs-on: ubuntu-latest outputs:3 unmodified lines with: persist-credentials: false - uses: astral-sh/setup-uv@61cb8a9741eeb8a550a1b8544337180c0fc8476b # v7.2.0 with: enable-cache: true enable-cache: false prune-cache: false - uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 with: python-version-file: pyproject.toml15 unmodified lines with: artifact-ids: ${{ needs.build.outputs.artifact-id }} path: dist/ - name: create release run: gh release create --draft --repo ${{ github.repository }} ${{ github.ref_name }} dist/* run: gh release create --draft --repo ${GITHUB_REPOSITORY} ${GITHUB_REF_NAME} dist/* env: GH_TOKEN: ${{ github.token }} publish-pypi: needs: [build]14 unmodified linesmodified:.github/workflows/tests.yaml+11 added-1 removed
3 unmodified lines45678910111213141514 unmodified lines3031323334353637383940414237434445464748495051525354559 unmodified lines3 unmodified lines paths-ignore: ['docs/**', 'README.md'] push: branches: [main, stable] paths-ignore: ['docs/**', 'README.md']permissions: {}concurrency: group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} cancel-in-progress: truejobs: tests: name: ${{ matrix.name || matrix.python }} runs-on: ${{ matrix.os || 'ubuntu-latest' }}14 unmodified lines - {name: Minimum Versions, python: '3.14', tox: tests-min} - {name: Development Versions, python: '3.10', tox: tests-dev} steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: persist-credentials: false - uses: astral-sh/setup-uv@61cb8a9741eeb8a550a1b8544337180c0fc8476b # v7.2.0 with: enable-cache: true prune-cache: false - uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 with: python-version: ${{ matrix.python }} - run: uv run --locked tox run -e ${{ matrix.tox || format('py{0}', matrix.python) }} - run: uv run --locked tox run env: TOX_ENV: ${{ matrix.tox || format('py{0}', matrix.python) }} typing: runs-on: ubuntu-latest steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: persist-credentials: false - uses: astral-sh/setup-uv@61cb8a9741eeb8a550a1b8544337180c0fc8476b # v7.2.0 with: enable-cache: true prune-cache: false9 unmodified linesadded:.github/workflows/zizmor.yaml+22 added
12345678910111213141516171819202122name: GitHub Actions security analysis with zizmoron: pull_request: paths: ["**/*.yaml?"] push: branches: [main, stable] paths: ["**/*.yaml?"]permissions: {}concurrency: group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} cancel-in-progress: truejobs: zizmor: runs-on: ubuntu-latest steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: persist-credentials: false - uses: zizmorcore/zizmor-action@0dce2577a4760a2749d8cfb7a84b7d5585ebcb7d # v0.5.0 with: advanced-security: false annotations: true