From b3265e3623766c966e074942bb93e707600e5a62 Mon Sep 17 00:00:00 2001 From: Solganis Date: Mon, 15 Jun 2026 03:51:31 +0300 Subject: [PATCH 1/3] ci: fix zizmor security findings --- .github/dependabot.yml | 6 ++++++ .github/workflows/ci.yml | 4 ++++ .github/workflows/codeql.yml | 6 ++++-- .github/workflows/publish.yml | 14 +++++++++++--- 4 files changed, 25 insertions(+), 5 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 7318e4ef..7d69d14b 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -4,6 +4,9 @@ updates: directory: "/" schedule: interval: "weekly" + cooldown: + default-days: 3 + semver-major-days: 7 commit-message: prefix: "chore" @@ -11,5 +14,8 @@ updates: directory: "/" schedule: interval: "weekly" + cooldown: + default-days: 3 + semver-major-days: 7 commit-message: prefix: "ci" diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d09433e0..cb1da6a8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,6 +17,8 @@ jobs: python-version: ["3.10", "3.11", "3.12", "3.13", "3.14", "3.15"] steps: - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 + with: + persist-credentials: false - name: Install uv uses: astral-sh/setup-uv@fac544c07dec837d0ccb6301d7b5580bf5edae39 # v8.2.0 @@ -47,6 +49,8 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 + with: + persist-credentials: false - name: Install uv uses: astral-sh/setup-uv@fac544c07dec837d0ccb6301d7b5580bf5edae39 # v8.2.0 diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 666b4823..4851c7e7 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -18,7 +18,9 @@ jobs: security-events: write steps: - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 - - uses: github/codeql-action/init@f52b05f4acaaa234e44466e66d29050e135ea9ef # v4.36.0 + with: + persist-credentials: false + - uses: github/codeql-action/init@7211b7c8077ea37d8641b6271f6a365a22a5fbfa # v4.36.0 with: languages: python - - uses: github/codeql-action/analyze@f52b05f4acaaa234e44466e66d29050e135ea9ef # v4.36.0 + - uses: github/codeql-action/analyze@7211b7c8077ea37d8641b6271f6a365a22a5fbfa # v4.36.0 diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index dd2608da..357e5f6d 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -17,9 +17,13 @@ jobs: attestations: write steps: - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 + with: + persist-credentials: false - name: Install uv uses: astral-sh/setup-uv@fac544c07dec837d0ccb6301d7b5580bf5edae39 # v8.2.0 + with: + enable-cache: false - name: Set up Python uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 @@ -45,13 +49,17 @@ jobs: - name: Prepare provenance bundles run: | mkdir -p provenance - cp "${{ steps.attest-wheel.outputs.bundle-path }}" "provenance/$(basename dist/*.whl).sigstore.json" - cp "${{ steps.attest-sdist.outputs.bundle-path }}" "provenance/$(basename dist/*.tar.gz).sigstore.json" + cp "$WHEEL_BUNDLE" "provenance/$(basename dist/*.whl).sigstore.json" + cp "$SDIST_BUNDLE" "provenance/$(basename dist/*.tar.gz).sigstore.json" + env: + WHEEL_BUNDLE: ${{ steps.attest-wheel.outputs.bundle-path }} + SDIST_BUNDLE: ${{ steps.attest-sdist.outputs.bundle-path }} - name: Publish to PyPI uses: pypa/gh-action-pypi-publish@cef221092ed1bacb1cc03d23a2d87d1d172e277b # v1.14.0 - name: Upload to GitHub Release - run: gh release upload "${{ github.event.release.tag_name }}" dist/* provenance/* + run: gh release upload "$TAG_NAME" dist/* provenance/* env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + TAG_NAME: ${{ github.event.release.tag_name }} From f94341e82a881e8854f2f45896020a0226879b67 Mon Sep 17 00:00:00 2001 From: Solganis Date: Mon, 15 Jun 2026 03:52:57 +0300 Subject: [PATCH 2/3] fix: remove unsupported semver-major-days from github-actions cooldown --- .github/dependabot.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 7d69d14b..275ce091 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -16,6 +16,5 @@ updates: interval: "weekly" cooldown: default-days: 3 - semver-major-days: 7 commit-message: prefix: "ci" From 98afdb1610a4507096bf18999d8f39c104ba8b34 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 15 Jun 2026 00:55:09 +0000 Subject: [PATCH 3/3] ci: bump github/codeql-action from 4.35.3 to 4.36.2 Bumps [github/codeql-action](https://github.com/github/codeql-action) from 4.35.3 to 4.36.2. - [Release notes](https://github.com/github/codeql-action/releases) - [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md) - [Commits](https://github.com/github/codeql-action/compare/v4.35.3...8aad20d150bbac5944a9f9d289da16a4b0d87c1e) --- updated-dependencies: - dependency-name: github/codeql-action dependency-version: 4.36.2 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- .github/workflows/codeql.yml | 4 ++-- .github/workflows/scorecard.yml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 4851c7e7..e8fff7f7 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -20,7 +20,7 @@ jobs: - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 with: persist-credentials: false - - uses: github/codeql-action/init@7211b7c8077ea37d8641b6271f6a365a22a5fbfa # v4.36.0 + - uses: github/codeql-action/init@8aad20d150bbac5944a9f9d289da16a4b0d87c1e # v4.36.2 with: languages: python - - uses: github/codeql-action/analyze@7211b7c8077ea37d8641b6271f6a365a22a5fbfa # v4.36.0 + - uses: github/codeql-action/analyze@8aad20d150bbac5944a9f9d289da16a4b0d87c1e # v4.36.2 diff --git a/.github/workflows/scorecard.yml b/.github/workflows/scorecard.yml index 9ac0ebfe..fd4382a3 100644 --- a/.github/workflows/scorecard.yml +++ b/.github/workflows/scorecard.yml @@ -29,6 +29,6 @@ jobs: name: SARIF file path: results.sarif retention-days: 5 - - uses: github/codeql-action/upload-sarif@e46ed2cbd01164d986452f91f178727624ae40d7 # v4.35.3 + - uses: github/codeql-action/upload-sarif@8aad20d150bbac5944a9f9d289da16a4b0d87c1e # v4.36.2 with: sarif_file: results.sarif