add zizmor to scan workflows
Before adoption: this commit came in with the history the project adopted, so no landing records it.
authored by David Lord · committed by David Lord · parent e4dbb3e · Browse files · 6 files·+62 added−64 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
6 files+62 added−64 removed
- other:+62 added−64 removed
Provenance
- Commit
97b300c- Tree
227f385- Author
David Lord <davidism@gmail.com>- Committer
David Lord <davidism@gmail.com>- Parent
e4dbb3e
6 files changed+62 added−64 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+8 added-4 removed
12345678910111213141115161718192021222 unmodified lines2526272823242529name: 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 - uses: astral-sh/setup-uv@e06108dd0aef18192324c70427afc47652e63a82 # v7.5.0 with: persist-credentials: false - uses: astral-sh/setup-uv@5a095e7a2014a4212f075830d4f7277575a9d098 # v7.3.1 with: enable-cache: true prune-cache: false - uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 id: setup-python2 unmodified lines - uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3 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() }} - run: uv run --locked --no-default-groups --group pre-commit pre-commit run --show-diff-on-failure --color=always --all-filesmodified:.github/workflows/publish.yaml+10 added-6 removed
123456789101112131415161714181916202122232425262327282930313 unmodified lines353637383539404142434044454647483 unmodified lines525354555256575859602 unmodified linesname: Publishon: push: tags: ['*']permissions: {}concurrency: group: publish-${{ github.event.push.ref }} cancel-in-progress: truejobs: build: runs-on: ubuntu-latest outputs: artifact-id: ${{ steps.upload-artifact.outputs.artifact-id }} steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: persist-credentials: false - uses: astral-sh/setup-uv@eac588ad8def6316056a12d4907a9d4d84ff7a3b # v7.3.0 - uses: astral-sh/setup-uv@5a095e7a2014a4212f075830d4f7277575a9d098 # v7.3.1 with: enable-cache: true enable-cache: false prune-cache: false - uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 with: python-version-file: pyproject.toml - run: echo "SOURCE_DATE_EPOCH=$(git log -1 --pretty=%ct)" >> $GITHUB_ENV - run: uv build - uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0 - uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0 id: upload-artifact with: name: dist path: dist/3 unmodified lines runs-on: ubuntu-latest permissions: contents: write steps: - uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0 - uses: actions/download-artifact@70fc10c6e5e1ce46ad2ea6f2b72d43f7d47b13c3 # v8.0.0 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]3 unmodified lines runs-on: ubuntu-latest permissions: id-token: write steps: - uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0 - uses: actions/download-artifact@70fc10c6e5e1ce46ad2ea6f2b72d43f7d47b13c3 # v8.0.0 with: artifact-ids: ${{ needs.build.outputs.artifact-id }} path: dist/ - uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e # v1.13.02 unmodified linesdeleted:.github/workflows/test-flask.yaml-25 removed
12345678910111213141516171819202122232425name: Test Flask Mainon: pull_request: paths-ignore: ['docs/**', 'README.md'] push: branches: [main, stable] paths-ignore: ['docs/**', 'README.md']jobs: flask-tests: name: flask-tests runs-on: ubuntu-latest steps: - uses: astral-sh/setup-uv@e06108dd0aef18192324c70427afc47652e63a82 # v7.5.0 with: enable-cache: true prune-cache: false - run: git clone https://github.com/pallets/flask - run: uv venv --python 3.14 working-directory: ./flask - run: source .venv/bin/activate working-directory: ./flask - run: uv sync --all-extras working-directory: ./flask - run: uv run --with "git+https://github.com/pallets/click.git@main" -- pytest working-directory: ./flaskmodified:.github/workflows/tests.yaml+16 added-25 removed
3 unmodified lines4567891011121314151617181920172122232419202526272829302731293031323334333435363738394041424344454647353637383953404142434445465847484950515253542 unmodified lines5758596070613 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' }} strategy: fail-fast: false matrix: include: - {python: '3.14'} - {name: free-threaded-latest, python: '3.14t'} - {python: '3.14t'} - {name: Windows, python: '3.14', os: windows-latest} - {name: Mac, python: '3.14', os: macos-latest} - {python: '3.13'} - {name: Windows, python: '3.13', os: windows-latest} - {name: Mac, python: '3.13', os: macos-latest} - {python: '3.12'} - {python: '3.11'} - {python: '3.10'} - {name: PyPy, python: 'pypy-3.11', tox: pypy3.11} steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - uses: astral-sh/setup-uv@e06108dd0aef18192324c70427afc47652e63a82 # v7.5.0 with: enable-cache: true prune-cache: false - uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 persist-credentials: false - uses: astral-sh/setup-uv@5a095e7a2014a4212f075830d4f7277575a9d098 # v7.3.1 with: python-version: ${{ matrix.python }} - run: uv run --locked tox run -e ${{ matrix.tox || format('py{0}', matrix.python) }} stress: name: stress (${{ matrix.name || matrix.python }}) runs-on: ${{ matrix.os || 'ubuntu-latest' }} strategy: fail-fast: false matrix: include: - {python: '3.14'} - {name: free-threaded, python: '3.14t', tox: stress-py3.14t} steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - uses: astral-sh/setup-uv@e06108dd0aef18192324c70427afc47652e63a82 # v7.5.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('stress-py{0}', matrix.python) }} - run: uv run --locked --no-default-groups --group dev 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 - uses: astral-sh/setup-uv@e06108dd0aef18192324c70427afc47652e63a82 # v7.5.0 with: persist-credentials: false - uses: astral-sh/setup-uv@5a095e7a2014a4212f075830d4f7277575a9d098 # v7.3.1 with: enable-cache: true prune-cache: false - uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 with:2 unmodified lines uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3 with: path: ./.mypy_cache key: mypy|${{ hashFiles('pyproject.toml') }} - run: uv run --locked tox run -e typing - run: uv run --locked --no-default-groups --group dev tox run -e typingadded:.github/workflows/zizmor.yaml+22 added
1+name: GitHub Actions security analysis with zizmor2+on:3+ pull_request:4+ paths: ["**/*.yaml?"]5+ push:6+ branches: [main, stable]7+ paths: ["**/*.yaml?"]8+permissions: {}9+concurrency:10+ group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}11+ cancel-in-progress: true12+jobs:13+ zizmor:14+ runs-on: ubuntu-latest15+ steps:16+ - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.217+ with:18+ persist-credentials: false19+ - uses: zizmorcore/zizmor-action@195d10ad90f31d8cd6ea1efd6ecc12969ddbe73f # v0.5.120+ with:21+ advanced-security: false22+ annotations: true