Compare commits

...
Author SHA1 Message Date
dependabot[bot] f3099ca9c7 chore(deps): bump @octokit/plugin-paginate-rest from 13.1.1 to 15.0.0
Bumps [@octokit/plugin-paginate-rest](https://github.com/octokit/plugin-paginate-rest.js) from 13.1.1 to 15.0.0.
- [Release notes](https://github.com/octokit/plugin-paginate-rest.js/releases)
- [Commits](https://github.com/octokit/plugin-paginate-rest.js/compare/v13.1.1...v15.0.0)

---
updated-dependencies:
- dependency-name: "@octokit/plugin-paginate-rest"
  dependency-version: 15.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-10-22 04:43:08 +00:00
Alex Waygood 665801e39d Update esbuild to 0.28.2 (#435)
Update `esbuild` from `0.27.4` to `0.28.2` and regenerate the checked-in
action bundles with the updated version. This addresses [Dependabot
alert
#28](https://github.com/astral-sh/ruff-action/security/dependabot/28).
2026-10-21 11:19:10 -07:00
Alex Waygood 5226eeb6a9 Update smol-toml to 1.9.1 (#434)
Update the locked `smol-toml` dependency from `1.6.1` to `1.9.1` in
`package-lock.json`. This addresses Dependabot alerts
[#75](https://github.com/astral-sh/ruff-action/security/dependabot/75)
and
[#60](https://github.com/astral-sh/ruff-action/security/dependabot/60).
The checked-in action bundle includes the updated dependency.
2026-10-21 11:18:55 -07:00
Alex Waygood ea181cb604 Update undici to 6.29.0 (#431)
Update the locked `undici` dependency from `6.24.1` to `6.29.0` in
`package-lock.json`. This addresses Dependabot alert
[#64](https://github.com/astral-sh/ruff-action/security/dependabot/64),
among other alerts for this dependency. The checked-in action bundles
include the updated dependency.
2026-10-21 11:18:43 -07:00
Alex Waygood 107126dd4d Update @babel/core to 7.29.7 (#433)
Update the locked `@babel/core` dependency from `7.28.6` to `7.29.7` in
`package-lock.json`. This addresses Dependabot alert
[#36](https://github.com/astral-sh/ruff-action/security/dependabot/36).
The update also addresses alerts for
[browserslist](https://github.com/astral-sh/ruff-action/security/dependabot/57)
and
[baseline-browser-mapping](https://github.com/astral-sh/ruff-action/security/dependabot/59).
2026-10-21 11:18:29 -07:00
Alex Waygood 280e92ea43 Update brace-expansion dependencies (#432)
Update the locked `brace-expansion` dependencies to `1.1.21`, `2.1.7`,
and `5.0.12` in `package-lock.json`. This addresses Dependabot alerts
[#73](https://github.com/astral-sh/ruff-action/security/dependabot/73),
[#72](https://github.com/astral-sh/ruff-action/security/dependabot/72),
and
[#71](https://github.com/astral-sh/ruff-action/security/dependabot/71),
among other alerts for this dependency.
2026-10-21 11:18:16 -07:00
Alex Waygood be1f93951f Update js-yaml dependencies (#430)
Update the locked `js-yaml` dependencies to `3.15.2` and `4.3.2` in
`package-lock.json`. This addresses Dependabot alerts
[#62](https://github.com/astral-sh/ruff-action/security/dependabot/62)
and
[#61](https://github.com/astral-sh/ruff-action/security/dependabot/61),
among other alerts for this dependency.
2026-10-21 11:17:34 -07:00
Alex Waygood 747ffb9220 Update handlebars to 4.7.10 (#429)
Update the locked `handlebars` dependency from `4.7.9` to `4.7.10` in
`package-lock.json`. This addresses Dependabot alerts
[#79](https://github.com/astral-sh/ruff-action/security/dependabot/79),
[#78](https://github.com/astral-sh/ruff-action/security/dependabot/78),
and
[#77](https://github.com/astral-sh/ruff-action/security/dependabot/77).
2026-10-21 11:17:02 -07:00
Kevin Stillhammer 70c5336f5b chore(deps): roll up dependency updates (#428)
## Summary
- Update CodeQL init, autobuild, and analyze to 4.37.6 (#417, #418,
#419).
- Update actions/setup-node to 7.0.0 (#403).
- Update @actions/core to 3.0.1 (#405) and @types/node to 26.1.1 (#407).
- No changes needed for #354, #317, or #316: their updates are already
represented on main.
- Exclude TypeScript #406: TypeScript 7 breaks the current ts-jest,
which requires TypeScript <6.

## Validation
- `npm run all` passed: build, Biome, packaging, and all 99 tests across
7 suites.
- No generated bundle changes.
- `git diff --check` passed.

Refs: pi-session 01a15ec4-888a-73e1-9f84-da48940488a6
2026-10-21 14:13:48 +00:00
github-actions[bot]andeifinger 22ba4f8560 chore: update known checksums for 0.17.1 (#427)
chore: update known checksums for 0.17.1

Co-authored-by: eifinger <1481961+eifinger@users.noreply.github.com>
2026-10-16 09:13:49 +02:00
Kevin Stillhammerandzaniebot f2f46687ac Verify npm dependency signatures before builds (#426)
## Summary

Supersedes #402 with its changes rebased onto current `main` and the
merge conflict resolved. The original PR is left unchanged.

- Run `npm audit signatures` after installation and before `npm run all`
in the test and checksum-update workflows.
- Preserve the current JSON checksum manifest path
(`src/download/checksum/known-checksums.json`).
- Verify registry signatures and available provenance attestations
without requiring every dependency to publish provenance.

Related: astral-sh/setup-uv#1027 adds the same verification; #401
separately hardens npm installation defaults.

## Validation

Using Node 24.19.0 (matching `.nvmrc`) and npm 11.10.0:
- `npm ci --ignore-scripts` passed (reports existing dependency
vulnerabilities; dependency files are unchanged).
- `npm audit signatures` passed: 547 registry signatures and 97
attestations verified.
- `npm run all` passed: 7 suites, 99 tests; no generated or formatting
changes.
- `actionlint` passed.
- `zizmor` reports the same 26 low-severity findings on this branch and
`main`, with no new findings.
- `git diff --check` passed.

Refs: pi-session 01a1399e-1a99-7314-9573-9a982ea1bb3f

Co-authored-by: zaniebot <242828183+zaniebot@users.noreply.github.com>
2026-10-14 11:05:12 +02:00
github-actions[bot]andeifinger a737711ea8 chore: update known checksums for 0.17.0 (#425)
chore: update known checksums for 0.17.0

Co-authored-by: eifinger <1481961+eifinger@users.noreply.github.com>
2026-10-10 06:50:00 +00:00
Charlie Marsh 4307b3970e Use macOS 15 runners for tests (#424)
We move the latest-version and specific-version test matrices from
`macos-14` to `macos-15` ahead of GitHub’s [October 5 brownout and
November 2, 2026
retirement](https://github.com/actions/runner-images/issues/13518).
2026-10-02 15:16:05 -05:00
github-actions[bot]andeifinger 8fc297008d chore: update known checksums for 0.16.9/0.16.10 (#423)
chore: update known checksums for 0.16.10

Co-authored-by: eifinger <1481961+eifinger@users.noreply.github.com>
2026-10-02 08:47:15 +02:00
Kevin StillhammerandAmp 6776b96909 test: fix Windows path assertions (#422)
Amp-Thread-ID:
https://ampcode.com/threads/T-01a0af62-d8be-7209-b38b-950badf6ef76

Closes: #394

Co-authored-by: Amp <amp@ampcode.com>
2026-09-17 13:32:54 +00:00
github-actions[bot]andeifinger cc56f639e4 chore: update known checksums for 0.16.8 (#421)
chore: update known checksums for 0.16.8

Co-authored-by: eifinger <1481961+eifinger@users.noreply.github.com>
2026-09-17 05:53:43 +00:00
github-actions[bot]andeifinger 3906fcf994 chore: update known checksums for 0.16.7 (#420)
chore: update known checksums for 0.16.7

Co-authored-by: eifinger <1481961+eifinger@users.noreply.github.com>
2026-09-11 06:31:56 +00:00
github-actions[bot]andeifinger c890b57484 chore: update known checksums for 0.16.6 (#416)
chore: update known checksums for 0.16.6

Co-authored-by: eifinger <1481961+eifinger@users.noreply.github.com>
2026-09-04 07:37:34 +00:00
dependabot[bot]anddependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> 6f8f9a9d5f chore(deps): bump release-drafter/release-drafter from 7.3.0 to 7.6.0 (#404)
Bumps
[release-drafter/release-drafter](https://github.com/release-drafter/release-drafter)
from 7.3.0 to 7.6.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/release-drafter/release-drafter/releases">release-drafter/release-drafter's
releases</a>.</em></p>
<blockquote>
<h2>v7.6.0</h2>
<h1>What's Changed</h1>
<h2>New</h2>
<ul>
<li>feat: resolve release commitish refs to commit SHAs (<a
href="https://redirect.github.com/release-drafter/release-drafter/issues/1649">#1649</a>)
<a href="https://github.com/jetersen"><code>@​jetersen</code></a></li>
<li>feat: add new contributors list (<a
href="https://redirect.github.com/release-drafter/release-drafter/issues/1645">#1645</a>)
<a href="https://github.com/jetersen"><code>@​jetersen</code></a></li>
<li>feat: support pull request co-authors (<a
href="https://redirect.github.com/release-drafter/release-drafter/issues/1646">#1646</a>)
<a href="https://github.com/jetersen"><code>@​jetersen</code></a></li>
<li>feat: support per-key merge strategies in <code>_extends</code> (<a
href="https://redirect.github.com/release-drafter/release-drafter/issues/1642">#1642</a>)
<a
href="https://github.com/ReneWerner87"><code>@​ReneWerner87</code></a>,
<a href="https://github.com/cchanche"><code>@​cchanche</code></a>, <a
href="https://github.com/jetersen"><code>@​jetersen</code></a></li>
</ul>
<h2>Bug Fixes</h2>
<ul>
<li>fix: .github in legacy <code>_extends</code> refs (<a
href="https://redirect.github.com/release-drafter/release-drafter/issues/1650">#1650</a>)
<a href="https://github.com/jetersen"><code>@​jetersen</code></a></li>
<li>fix: normalize release target branch refs (<a
href="https://redirect.github.com/release-drafter/release-drafter/issues/1648">#1648</a>)
<a href="https://github.com/jetersen"><code>@​jetersen</code></a></li>
<li>fix: duplicate and skipped release contributors (<a
href="https://redirect.github.com/release-drafter/release-drafter/issues/1644">#1644</a>)
<a href="https://github.com/jetersen"><code>@​jetersen</code></a></li>
</ul>
<h2>Maintenance</h2>
<ul>
<li>chore(deps): update dependency typescript to 7.0.2 (<a
href="https://redirect.github.com/release-drafter/release-drafter/issues/1667">#1667</a>)
<a
href="https://github.com/apps/renovate"><code>@​renovate[bot]</code></a></li>
<li>ci(deps): update github/codeql-action digest to 7188fc3 (<a
href="https://redirect.github.com/release-drafter/release-drafter/issues/1654">#1654</a>)
<a
href="https://github.com/apps/renovate"><code>@​renovate[bot]</code></a></li>
<li>ci(deps): update actions/stale digest to 1e223db (<a
href="https://redirect.github.com/release-drafter/release-drafter/issues/1653">#1653</a>)
<a
href="https://github.com/apps/renovate"><code>@​renovate[bot]</code></a></li>
<li>chore(deps): update dependency <code>@​types/node</code> to 24.13.3
(<a
href="https://redirect.github.com/release-drafter/release-drafter/issues/1661">#1661</a>)
<a
href="https://github.com/apps/renovate"><code>@​renovate[bot]</code></a></li>
<li>chore(deps): update vitest to 4.1.10 (<a
href="https://redirect.github.com/release-drafter/release-drafter/issues/1656">#1656</a>)
<a
href="https://github.com/apps/renovate"><code>@​renovate[bot]</code></a></li>
<li>chore(deps): update graphql-codegen (<a
href="https://redirect.github.com/release-drafter/release-drafter/issues/1663">#1663</a>)
<a
href="https://github.com/apps/renovate"><code>@​renovate[bot]</code></a></li>
<li>chore(deps): update dependency vite to 8.1.4 (<a
href="https://redirect.github.com/release-drafter/release-drafter/issues/1662">#1662</a>)
<a
href="https://github.com/apps/renovate"><code>@​renovate[bot]</code></a>,
<a
href="https://github.com/apps/github-actions"><code>@​github-actions[bot]</code></a></li>
<li>chore(deps): update dependency nock to 14.0.16 (<a
href="https://redirect.github.com/release-drafter/release-drafter/issues/1655">#1655</a>)
<a
href="https://github.com/apps/renovate"><code>@​renovate[bot]</code></a></li>
<li>chore(deps): update dependency <code>@​biomejs/biome</code> to 2.5.3
(<a
href="https://redirect.github.com/release-drafter/release-drafter/issues/1660">#1660</a>)
<a
href="https://github.com/apps/renovate"><code>@​renovate[bot]</code></a></li>
<li>ci(deps): update actions/checkout action to v7.0.0 (<a
href="https://redirect.github.com/release-drafter/release-drafter/issues/1669">#1669</a>)
<a
href="https://github.com/apps/renovate"><code>@​renovate[bot]</code></a></li>
<li>ci(deps): update actions/setup-node action to v7.0.0 (<a
href="https://redirect.github.com/release-drafter/release-drafter/issues/1670">#1670</a>)
<a
href="https://github.com/apps/renovate"><code>@​renovate[bot]</code></a></li>
<li>chore: update generated GraphQL types (<a
href="https://redirect.github.com/release-drafter/release-drafter/issues/1641">#1641</a>)
<a
href="https://github.com/apps/github-actions"><code>@​github-actions[bot]</code></a>,
<a href="https://github.com/jetersen"><code>@​jetersen</code></a></li>
</ul>
<h2>Dependency Updates</h2>
<ul>
<li>fix(deps): update dependency graphql to 16.14.2 (<a
href="https://redirect.github.com/release-drafter/release-drafter/issues/1657">#1657</a>)
<a
href="https://github.com/apps/renovate"><code>@​renovate[bot]</code></a>,
<a
href="https://github.com/apps/github-actions"><code>@​github-actions[bot]</code></a></li>
<li>fix(deps): update dependency yaml to 2.9.0 (<a
href="https://redirect.github.com/release-drafter/release-drafter/issues/1666">#1666</a>)
<a
href="https://github.com/apps/renovate"><code>@​renovate[bot]</code></a>,
<a
href="https://github.com/apps/github-actions"><code>@​github-actions[bot]</code></a></li>
<li>fix(deps): update dependency semver to 7.8.5 (<a
href="https://redirect.github.com/release-drafter/release-drafter/issues/1659">#1659</a>)
<a
href="https://github.com/apps/renovate"><code>@​renovate[bot]</code></a>,
<a
href="https://github.com/apps/github-actions"><code>@​github-actions[bot]</code></a></li>
<li>fix(deps): update dependency ignore to 7.0.6 (<a
href="https://redirect.github.com/release-drafter/release-drafter/issues/1658">#1658</a>)
<a
href="https://github.com/apps/renovate"><code>@​renovate[bot]</code></a>,
<a
href="https://github.com/apps/github-actions"><code>@​github-actions[bot]</code></a></li>
<li>chore(deps): update dependency <code>@​biomejs/biome</code> to 2.5.3
(<a
href="https://redirect.github.com/release-drafter/release-drafter/issues/1660">#1660</a>)
<a
href="https://github.com/apps/renovate"><code>@​renovate[bot]</code></a></li>
</ul>
<h2>New Contributors</h2>
<ul>
<li><a
href="https://github.com/ReneWerner87"><code>@​ReneWerner87</code></a>
made their first contribution in <a
href="https://redirect.github.com/release-drafter/release-drafter/issues/1642">#1642</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/release-drafter/release-drafter/compare/v7.5.1...v7.6.0">https://github.com/release-drafter/release-drafter/compare/v7.5.1...v7.6.0</a></p>
<h2>v7.5.1</h2>
<h1>What's Changed</h1>
<h2>Bug Fixes</h2>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/release-drafter/release-drafter/commit/eada3c96a64734dd381cfbda23511034e328ddb0"><code>eada3c9</code></a>
chore: release v7.6.0</li>
<li><a
href="https://github.com/release-drafter/release-drafter/commit/4621843980a0844866eefbe4d5f92e680fce5d81"><code>4621843</code></a>
migrate biome config</li>
<li><a
href="https://github.com/release-drafter/release-drafter/commit/e9aeda788e59684f9fe90b4ca1a32f60f0b3bf29"><code>e9aeda7</code></a>
chore(deps): update dependency typescript to 7.0.2 (<a
href="https://redirect.github.com/release-drafter/release-drafter/issues/1667">#1667</a>)</li>
<li><a
href="https://github.com/release-drafter/release-drafter/commit/c943e7c8b72b3d6c5fab33cfd024317893d5c320"><code>c943e7c</code></a>
fix(deps): update dependency graphql to 16.14.2 (<a
href="https://redirect.github.com/release-drafter/release-drafter/issues/1657">#1657</a>)</li>
<li><a
href="https://github.com/release-drafter/release-drafter/commit/b9af92564053e016d0bf080da7c24704c159ee4e"><code>b9af925</code></a>
fix(deps): update dependency yaml to 2.9.0 (<a
href="https://redirect.github.com/release-drafter/release-drafter/issues/1666">#1666</a>)</li>
<li><a
href="https://github.com/release-drafter/release-drafter/commit/f4aa1589c4bd889abd152b42a03071c0695716b8"><code>f4aa158</code></a>
ci(deps): update github/codeql-action digest to 7188fc3 (<a
href="https://redirect.github.com/release-drafter/release-drafter/issues/1654">#1654</a>)</li>
<li><a
href="https://github.com/release-drafter/release-drafter/commit/93973850c385e1ad1901d254003cf654b2fb7f4a"><code>9397385</code></a>
ci(deps): update actions/stale digest to 1e223db (<a
href="https://redirect.github.com/release-drafter/release-drafter/issues/1653">#1653</a>)</li>
<li><a
href="https://github.com/release-drafter/release-drafter/commit/5dd9f212bc0430df55c6f9b360720a2d08ddc157"><code>5dd9f21</code></a>
chore(deps): update dependency <code>@​types/node</code> to 24.13.3 (<a
href="https://redirect.github.com/release-drafter/release-drafter/issues/1661">#1661</a>)</li>
<li><a
href="https://github.com/release-drafter/release-drafter/commit/903a9a10909a48b47c20e26c545bac26676d69cd"><code>903a9a1</code></a>
chore(deps): update vitest to 4.1.10 (<a
href="https://redirect.github.com/release-drafter/release-drafter/issues/1656">#1656</a>)</li>
<li><a
href="https://github.com/release-drafter/release-drafter/commit/2796d1b6a0ad34872845939207b3af9aac1b346f"><code>2796d1b</code></a>
fix(deps): update dependency semver to 7.8.5 (<a
href="https://redirect.github.com/release-drafter/release-drafter/issues/1659">#1659</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/release-drafter/release-drafter/compare/c2e2804cc59f45f57076a99af580d0fedb697927...eada3c96a64734dd381cfbda23511034e328ddb0">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=release-drafter/release-drafter&package-manager=github_actions&previous-version=7.3.0&new-version=7.6.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-03 16:43:22 +05:30
eifinger-bot 127e6a115e Use JSON for known checksums (#415)
Ports the hardening from astral-sh/setup-uv#1025 to ruff-action.\n\nThis
stores generated checksums as JSON data behind a small typed TypeScript
wrapper, preventing values sourced from release metadata from being
mixed into generated executable code. It also updates the checksum
workflow and packaged action artifacts, and adds a regression test for
code-like keys and escaped checksum values.\n\nTests: npm run build, npm
run check, npm test, npm run package
2026-08-28 16:15:05 -04:00
github-actions[bot]andeifinger 6d5deb5cee chore: update known checksums for 0.16.4/0.16.5 (#412)
chore: update known checksums for 0.16.5

Co-authored-by: eifinger <1481961+eifinger@users.noreply.github.com>
2026-08-28 07:54:42 +00:00
zaniebotandzaniebot 46b5b9699e Enforce the npm version floor with legacy clients (#411)
`devEngines` is ignored by npm releases such as `10.8.2`, so those
clients can install dependencies without applying the seven-day
`min-release-age` setting added in #401. Declare the same minimum in
`engines.npm` and enable `engine-strict` to make that legacy installer
requirement fatal. Keep `devEngines` for its earlier checks on newer npm
versions, and pin the build and checksum workflows to Node.js `24.19.0`
so their bundled `npm` supports the policy.

Related: astral-sh/setup-uv#1026 and astral-sh/ruff#27844 enforce the
same legacy-aware `npm` version floor. astral-sh/ruff-action#400 covers
Dependabot's update cooldown, and astral-sh/ruff-action#402 separately
verifies registry signatures and available provenance.

---------

Co-authored-by: zaniebot <242828183+zaniebot@users.noreply.github.com>
2026-08-20 17:36:55 +02:00
dependabot[bot]anddependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> 848ccd1cb2 chore(deps): bump zizmorcore/zizmor-action from 0.5.6 to 0.6.0 (#408)
Bumps
[zizmorcore/zizmor-action](https://github.com/zizmorcore/zizmor-action)
from 0.5.6 to 0.6.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/zizmorcore/zizmor-action/releases">zizmorcore/zizmor-action's
releases</a>.</em></p>
<blockquote>
<h2>v0.6.0</h2>
<p>zizmor 1.27.0 is now the default version used by the action.</p>
<h2>What's Changed</h2>
<ul>
<li>Fold Docker image pull output into a collapsed Actions log group by
<a href="https://github.com/woodruffw"><code>@​woodruffw</code></a> with
<a href="https://github.com/Copilot"><code>@​Copilot</code></a> in <a
href="https://redirect.github.com/zizmorcore/zizmor-action/pull/132">zizmorcore/zizmor-action#132</a></li>
<li>Readme: document missing inputs by <a
href="https://github.com/staabm"><code>@​staabm</code></a> in <a
href="https://redirect.github.com/zizmorcore/zizmor-action/pull/130">zizmorcore/zizmor-action#130</a></li>
<li>ci: block version sync workflow on forks by <a
href="https://github.com/shaanmajid"><code>@​shaanmajid</code></a> in <a
href="https://redirect.github.com/zizmorcore/zizmor-action/pull/129">zizmorcore/zizmor-action#129</a></li>
<li>Sync zizmor versions by <a
href="https://github.com/github-actions"><code>@​github-actions</code></a>[bot]
in <a
href="https://redirect.github.com/zizmorcore/zizmor-action/pull/137">zizmorcore/zizmor-action#137</a></li>
<li>Add <code>collect</code> input by <a
href="https://github.com/woodruffw"><code>@​woodruffw</code></a> in <a
href="https://redirect.github.com/zizmorcore/zizmor-action/pull/139">zizmorcore/zizmor-action#139</a></li>
</ul>
<h2>New Contributors</h2>
<ul>
<li><a href="https://github.com/woodruffw"><code>@​woodruffw</code></a>
with <a href="https://github.com/Copilot"><code>@​Copilot</code></a>
made their first contribution in <a
href="https://redirect.github.com/zizmorcore/zizmor-action/pull/132">zizmorcore/zizmor-action#132</a></li>
<li><a href="https://github.com/staabm"><code>@​staabm</code></a> made
their first contribution in <a
href="https://redirect.github.com/zizmorcore/zizmor-action/pull/130">zizmorcore/zizmor-action#130</a></li>
<li><a
href="https://github.com/shaanmajid"><code>@​shaanmajid</code></a> made
their first contribution in <a
href="https://redirect.github.com/zizmorcore/zizmor-action/pull/129">zizmorcore/zizmor-action#129</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/zizmorcore/zizmor-action/compare/v0.5.7...v0.6.0">https://github.com/zizmorcore/zizmor-action/compare/v0.5.7...v0.6.0</a></p>
<h2>v0.5.7</h2>
<p>1.26.1 is now available via the action
1.26.1 is now the default version of zizmor used by the action</p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/zizmorcore/zizmor-action/commit/6599ee8b7a49aef6a770f63d261d214911a7ce02"><code>6599ee8</code></a>
Add <code>collect</code> input (<a
href="https://redirect.github.com/zizmorcore/zizmor-action/issues/139">#139</a>)</li>
<li><a
href="https://github.com/zizmorcore/zizmor-action/commit/bec05c80b8586b8cbc030450e4fa4e82b83a9427"><code>bec05c8</code></a>
Sync zizmor versions (<a
href="https://redirect.github.com/zizmorcore/zizmor-action/issues/137">#137</a>)</li>
<li><a
href="https://github.com/zizmorcore/zizmor-action/commit/cf5954948fbc9d5b9460b774e281e3387b989ea6"><code>cf59549</code></a>
Add issue templates (<a
href="https://redirect.github.com/zizmorcore/zizmor-action/issues/135">#135</a>)</li>
<li><a
href="https://github.com/zizmorcore/zizmor-action/commit/f72bf176f67e8007f87b16d80f9880ece648aa65"><code>f72bf17</code></a>
chore(deps): bump github/codeql-action/upload-sarif (<a
href="https://redirect.github.com/zizmorcore/zizmor-action/issues/134">#134</a>)</li>
<li><a
href="https://github.com/zizmorcore/zizmor-action/commit/b2a6fac1a76b42abf3794cd06cef23af2f13e590"><code>b2a6fac</code></a>
ci: block version sync workflow on forks (<a
href="https://redirect.github.com/zizmorcore/zizmor-action/issues/129">#129</a>)</li>
<li><a
href="https://github.com/zizmorcore/zizmor-action/commit/2d88f441dcd818e199d649f55e9a347196a52262"><code>2d88f44</code></a>
Readme: document missing inputs (<a
href="https://redirect.github.com/zizmorcore/zizmor-action/issues/130">#130</a>)</li>
<li><a
href="https://github.com/zizmorcore/zizmor-action/commit/d81e2769a6bdcb1d076bf52b5e7e663c881f94e7"><code>d81e276</code></a>
Fold Docker image pull output into a collapsed Actions log group (<a
href="https://redirect.github.com/zizmorcore/zizmor-action/issues/132">#132</a>)</li>
<li><a
href="https://github.com/zizmorcore/zizmor-action/commit/8c13c5382c13a16f7ece1f965891708b819d28b2"><code>8c13c53</code></a>
chore(deps): bump the github-actions group with 2 updates (<a
href="https://redirect.github.com/zizmorcore/zizmor-action/issues/133">#133</a>)</li>
<li><a
href="https://github.com/zizmorcore/zizmor-action/commit/2f8e9c6f609a49998258063502592a555c964847"><code>2f8e9c6</code></a>
README: bump versions (<a
href="https://redirect.github.com/zizmorcore/zizmor-action/issues/128">#128</a>)</li>
<li><a
href="https://github.com/zizmorcore/zizmor-action/commit/192e21d79ab29983730a13d1382995c2307fbcaa"><code>192e21d</code></a>
Sync zizmor versions (<a
href="https://redirect.github.com/zizmorcore/zizmor-action/issues/127">#127</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/zizmorcore/zizmor-action/compare/5f14fd08f7cf1cb1609c1e344975f152c7ee938d...6599ee8b7a49aef6a770f63d261d214911a7ce02">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=zizmorcore/zizmor-action&package-manager=github_actions&previous-version=0.5.6&new-version=0.6.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-08-20 09:02:44 +02:00
zaniebotandzaniebot 1f30a84c67 Harden npm install defaults (#401)
CI already disables npm lifecycle scripts, but ordinary installs from
the repository still run them. Add `.npmrc` defaults that disable those
scripts and apply the same seven-day `min-release-age` policy used by
`setup-uv`. Require npm `11.10.0` or newer through `devEngines` so older
versions cannot silently ignore the age setting. Explicit project
commands such as `npm run package` remain available.

Co-authored-by: zaniebot <242828183+zaniebot@users.noreply.github.com>
2026-08-18 19:12:36 +02:00
18 changed files with 3812 additions and 6873 deletions
+1
View File
@@ -1,2 +1,3 @@
* text=auto eol=lf
dist/** -diff linguist-generated=true
src/download/checksum/known-checksums.json linguist-generated=true
+3 -3
View File
@@ -45,7 +45,7 @@ jobs:
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@9e0d7b8d25671d64c341c19c0152d693099fb5ba # v4.35.5
uses: github/codeql-action/init@5595ccaf912efad79be6eef63a5619ff05969be3 # v4.37.6
with:
languages: ${{ matrix.language }}
source-root: src
@@ -57,7 +57,7 @@ jobs:
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@9e0d7b8d25671d64c341c19c0152d693099fb5ba # v4.35.5
uses: github/codeql-action/autobuild@5595ccaf912efad79be6eef63a5619ff05969be3 # v4.37.6
# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl
@@ -71,4 +71,4 @@ jobs:
# make release
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@9e0d7b8d25671d64c341c19c0152d693099fb5ba # v4.35.5
uses: github/codeql-action/analyze@5595ccaf912efad79be6eef63a5619ff05969be3 # v4.37.6
+1 -1
View File
@@ -17,7 +17,7 @@ jobs:
pull-requests: read
steps:
- name: 🚀 Run Release Drafter
uses: release-drafter/release-drafter@c2e2804cc59f45f57076a99af580d0fedb697927 # v7.3.0
uses: release-drafter/release-drafter@eada3c96a64734dd381cfbda23511034e328ddb0 # v7.6.0
with:
commitish: ${{ github.sha }}
env:
+6 -4
View File
@@ -24,13 +24,15 @@ jobs:
- name: Actionlint
uses: eifinger/actionlint-action@1fc89649be682d16ec5cf65ea16e269eb88d3982 # v1.10.2
- name: Run zizmor
uses: zizmorcore/zizmor-action@5f14fd08f7cf1cb1609c1e344975f152c7ee938d # v0.5.6
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
uses: zizmorcore/zizmor-action@6599ee8b7a49aef6a770f63d261d214911a7ce02 # v0.6.0
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version-file: .nvmrc
cache: npm
- run: |
npm ci --ignore-scripts
- name: Verify npm package signatures
run: npm audit signatures
- run: |
npm run all
- name: Check all jobs are in all-tests-passed.needs
@@ -45,7 +47,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, macos-14, windows-latest]
os: [ubuntu-latest, macos-latest, macos-15, windows-latest]
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
@@ -60,7 +62,7 @@ jobs:
strategy:
matrix:
ruff-version: ["0.1.7", "0.1.8", "0.4.7", "0.4.10", "0.7", "0.7.x", ">=0.7.0"]
os: [ ubuntu-latest, ubuntu-24.04-arm, macos-latest, macos-14, windows-latest ]
os: [ ubuntu-latest, ubuntu-24.04-arm, macos-latest, macos-15, windows-latest ]
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
+6 -3
View File
@@ -14,7 +14,7 @@ jobs:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version-file: .nvmrc
cache: npm
@@ -22,8 +22,11 @@ jobs:
id: update-known-checksums
run:
node dist/update-known-checksums/index.cjs
src/download/checksum/known-checksums.ts ${{ secrets.GITHUB_TOKEN }}
- run: npm ci --ignore-scripts && npm run all
src/download/checksum/known-checksums.json ${{ secrets.GITHUB_TOKEN }}
- run: |
npm ci --ignore-scripts
npm audit signatures
npm run all
- name: Create Pull Request
uses: peter-evans/create-pull-request@5f6978faf089d4d20b00c7766989d076bb2fc7f1 # v8.1.1
with:
+3
View File
@@ -0,0 +1,3 @@
engine-strict = true
ignore-scripts = true
min-release-age = 7
+1 -1
View File
@@ -1 +1 @@
24
24.19.0
@@ -0,0 +1,38 @@
import { promises as fs } from "node:fs";
import os from "node:os";
import path from "node:path";
import { expect, jest, test } from "@jest/globals";
const mockDownloadTool = jest.fn<() => Promise<string>>();
jest.unstable_mockModule("@actions/tool-cache", () => ({
downloadTool: mockDownloadTool,
}));
const { updateChecksums } = await import(
"../../../src/download/checksum/update-known-checksums"
);
test("serializes checksum entries as JSON data", async () => {
const tempDirectory = await fs.mkdtemp(
path.join(os.tmpdir(), "ruff-action-checksums-test-"),
);
const checksumPath = path.join(tempDirectory, "checksum");
const outputPath = path.join(tempDirectory, "known-checksums.json");
const checksum = 'checksum"\\value';
const platform = 'platform"\n};\ncompromised = true;';
const downloadUrl = `https://example.com/v1.0.0/ruff-1.0.0-${platform}.tar.gz.sha256`;
try {
await fs.writeFile(checksumPath, `${checksum} ruff.tar.gz`);
mockDownloadTool.mockResolvedValue(checksumPath);
await updateChecksums(outputPath, [downloadUrl]);
const content = await fs.readFile(outputPath, "utf8");
expect(JSON.parse(content)).toEqual({ [`${platform}-1.0.0`]: checksum });
expect(content.endsWith("\n")).toBe(true);
} finally {
await fs.rm(tempDirectory, { force: true, recursive: true });
}
});
+2 -1
View File
@@ -1,3 +1,4 @@
import * as path from "node:path";
import { beforeEach, describe, expect, it, jest } from "@jest/globals";
import * as semver from "semver";
@@ -450,7 +451,7 @@ describe("download-version", () => {
expect(mockExtractTar).toHaveBeenCalledWith("/tmp/downloaded");
expect(mockCacheDir).toHaveBeenCalledWith(
"/tmp/extracted/ruff-x86_64-unknown-linux-gnu",
path.join("/tmp/extracted", "ruff-x86_64-unknown-linux-gnu"),
"ruff",
"0.15.8",
"x86_64",
+3 -2
View File
@@ -17,6 +17,7 @@ const {
const { findPyprojectToml } = await import("../../src/utils/pyproject-finder");
let tempDir: string | undefined;
const symlinkTest = process.platform === "win32" ? it.skip : it;
afterEach(async () => {
if (tempDir !== undefined) {
@@ -177,7 +178,7 @@ describe("expandSourceInput", () => {
]);
});
it("does not traverse symlinked directories", async () => {
symlinkTest("does not traverse symlinked directories", async () => {
const projectDir = await createTempProject();
const externalDir = path.join(projectDir, "external");
const symlinkPath = path.join(projectDir, "src", "linked");
@@ -368,7 +369,7 @@ describe("getSourceBasePath", () => {
it("does not treat brace expansion as glob syntax", async () => {
await expect(getSourceBasePath("src/{a,b}/*.py")).resolves.toBe(
"src/{a,b}",
path.join("src", "{a,b}"),
);
});
});
Generated Vendored
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
+284 -264
View File
File diff suppressed because it is too large Load Diff
+15 -5
View File
@@ -5,12 +5,22 @@
"type": "module",
"description": "A GitHub Action to run Ruff, an extremely fast Python linter and code formatter.",
"main": "dist/ruff-action/index.cjs",
"engines": {
"npm": ">=11.10.0"
},
"devEngines": {
"packageManager": {
"name": "npm",
"version": ">=11.10.0",
"onFail": "error"
}
},
"scripts": {
"build": "tsc --noEmit",
"check": "biome check --write",
"package": "node scripts/build-dist.mjs",
"act": "act pull_request -W .github/workflows/test.yml --container-architecture linux/amd64 -s GITHUB_TOKEN=\"$(gh auth token)\"",
"update-known-checksums": "RUNNER_TEMP=known_checksums node dist/update-known-checksums/index.cjs src/download/checksum/known-checksums.ts \"$(gh auth token)\"",
"update-known-checksums": "RUNNER_TEMP=known_checksums node dist/update-known-checksums/index.cjs src/download/checksum/known-checksums.json \"$(gh auth token)\"",
"test:unit": "node --experimental-vm-modules ./node_modules/jest/bin/jest.js",
"test": "npm run build && npm run test:unit",
"all": "npm run build && npm run check && npm run package && npm run test:unit"
@@ -28,12 +38,12 @@
"author": "@eifinger",
"license": "Apache-2.0",
"dependencies": {
"@actions/core": "^3.0.0",
"@actions/core": "^3.0.1",
"@actions/exec": "^3.0.0",
"@actions/glob": "^0.7.0",
"@actions/tool-cache": "^4.0.0",
"@octokit/core": "^7.0.6",
"@octokit/plugin-paginate-rest": "^13.1.1",
"@octokit/plugin-paginate-rest": "^15.0.0",
"@octokit/plugin-rest-endpoint-methods": "^17.0.0",
"@renovatebot/pep440": "^4.2.1",
"smol-toml": "^1.6.0",
@@ -43,9 +53,9 @@
"@biomejs/biome": "^2.4.7",
"@types/jest": "^29.5.14",
"@types/js-yaml": "^4.0.9",
"@types/node": "^25.5.0",
"@types/node": "^26.1.1",
"@types/semver": "^7.7.1",
"esbuild": "^0.27.4",
"esbuild": "^0.28.2",
"jest": "^30.3.0",
"js-yaml": "^4.1.1",
"ts-jest": "^29.4.6",
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
@@ -5,25 +5,16 @@ export async function updateChecksums(
filePath: string,
downloadUrls: string[],
): Promise<void> {
await fs.rm(filePath);
await fs.appendFile(
filePath,
"// AUTOGENERATED_DO_NOT_EDIT\nexport const KNOWN_CHECKSUMS: { [key: string]: string } = {\n",
);
let firstLine = true;
const checksums: Record<string, string> = {};
for (const downloadUrl of downloadUrls) {
const key = getKey(downloadUrl);
if (key === undefined) {
continue;
}
const checksum = await getOrDownloadChecksum(key, downloadUrl);
if (!firstLine) {
await fs.appendFile(filePath, ",\n");
}
await fs.appendFile(filePath, ` "${key}":\n "${checksum}"`);
firstLine = false;
checksums[key] = checksum;
}
await fs.appendFile(filePath, ",\n};\n");
await fs.writeFile(filePath, `${JSON.stringify(checksums, null, 2)}\n`);
}
function getKey(downloadUrl: string): string | undefined {
+1
View File
@@ -5,6 +5,7 @@
"module": "esnext",
"moduleResolution": "bundler",
"noImplicitAny": true,
"resolveJsonModule": true,
"strict": true,
"target": "ES2022"
},