Skip to content

ci: fix tool drift, pin actions, remove release-please - #646

Merged
pavelgj merged 4 commits into
mainfrom
pj/ci-pin-tools-m8x4q2v7nb
Nov 16, 2026
Merged

pavelgj merged 4 commits into
mainfrom
pj/ci-pin-tools-m8x4q2v7nb

Conversation

@pavelgj

@pavelgj pavelgj commented Nov 16, 2026 •

Copy link
Copy Markdown
Collaborator

What's new

Fixes CI checks that currently fail on every PR (e.g. #640-#645) for reasons unrelated to the change under test, and removes release-please from CI.

Failing check Cause Fix
pnpm-lock.yaml Check, go.sum Check Checkout uses RELEASE_PLEASE_TOKEN on every PR and fails (could not read Username) Plain checkout with the default token (release-please plumbing removed, see below)
Go 1.25.x Tests govulncheck@latest (v1.9.0) requires Go 1.26 Pin govulncheck@v1.7.0, the last release that builds on Go 1.25. The vuln DB is fetched at run time, so the scan doesn't go stale
lint (golangci-lint) v2.10.1 is built with Go 1.26 and panics on go-version: stable (Go 1.27) Bump to v2.15.0 (built with Go 1.27). 0 issues on main and on #641
JS/TS Format Check Unpinned pnpm dlx @biomejs/biome picked up new markdown and import-ordering rules Pin @biomejs/biome@2.3.15, matching biome.json's $schema. Clean on main and #640
uv-lock-check (security scan) pysentry flags soupsieve 2.9.2 (dev-only, via jupyter -> nbconvert -> beautifulsoup4) uv lock --upgrade-package soupsieve (4.1.1 on Python >= 3.11.5, 2.10 on older) + re-export requirements.txt; ignore the 3 advisories left only on the older-Python fork, with a comment in .pysentry.toml

Action pinning and permissions (zizmor)

The org-level zizmor-output check fails on mandatory audits (unpinned-uses, known-vulnerable-actions, ...) for any workflow a PR touches. Same approach as genkit-ai/genkit-dart#436:

  • Every uses: is pinned to a full commit SHA with the version in a trailing comment. Pins are the latest release within the major each workflow already referenced (no major upgrades), so behavior is unchanged.
  • tj-actions/changed-files@v45 (GHSA-mrrh-fwg8-r2c3) moved to the v47.0.6 pin python.yml already uses.
  • Top-level permissions: contents: read added to every workflow that lacked one; jobs needing more (id-token, pull-requests, ...) already declare it at job level. js.yml / go.yml drop workflow-level contents: write / pull-requests: write.
  • Local zizmor 1.25.2 (same version as the org check): 0 findings for the mandatory audits. Remaining non-mandatory findings (artipacked, cache-poisoning on publish workflows, deploy.yml workflow-level pages/id-token) are pre-existing and left for a follow-up.

Release-please removed

  • Deleted release-please.yml (release PRs + lockfile auto-update job) and validate-release-please-config.yml.
  • Removed the "is this a release-please PR?" steps from js.yml, go.yml, python.yml, rust.yml, bazel.yml, along with the steps that pushed lockfile / maven_install.json updates back to release PRs, the PAT-based checkouts, and the contents: write / pull-requests: write permissions they needed (now contents: read).
  • Removed the release* labeler rules keyed on release-please--* branches.
  • Kept: the release-triggered publish workflows (Java, Rust, Python, VS Code) and the manual Release JS workflow. They still work when a GitHub release / tag is created by hand.
  • Kept: .release-please-config.json / .release-please-manifest.json (not CI; easy to re-enable or delete later).

Why

These failures mask real signal on every PR, and nothing currently enforces them (no required checks on main), so they're easy to ignore.

Also

Not in this PR

  • Deleting the RELEASE_PLEASE_TOKEN secret (now unused; needs repo admin) and the release-please config/manifest files.
  • scripts/lint still runs validate_release_please_config locally.
  • Pinning biome in root package.json scripts and scripts/format_ts_files (local dev); CI is the source of truth here.
  • Updating the Go test matrix (still 1.25.x / 1.26.x) or scripts/setup's govulncheck@latest.

Several checks fail on every PR for reasons unrelated to the change under
test:

- Lock-file checks (pnpm-lock.yaml, go.sum) check out with
  RELEASE_PLEASE_TOKEN on all PRs and fail at checkout; only use it (and
  head_ref) on release-please branches, matching python/rust/bazel.
- govulncheck@latest now requires Go 1.26, breaking the Go 1.25 leg; pin
  v1.7.0.
- golangci-lint v2.10.1 (built with Go 1.26) panics on Go 1.27 (stable);
  bump to v2.15.0.
- Unpinned biome picked up new markdown/import rules; pin 2.3.15 to match
  biome.json's $schema.
- pysentry flags soupsieve (dev-only, via jupyter); upgrade it where a
  fixed release is installable and ignore the advisories that remain only
  on the older-Python fork.
Release-please is no longer used; its token is broken and the release
workflow has been failing on main. Remove the Release Please and config
validation workflows, the per-workflow steps that pushed lockfile updates
back to release-please PRs (and the write permissions / PAT checkout they
needed), and the release-please PR labels.

The release-triggered publish workflows are kept; they still run when a
GitHub release is created manually.
@pavelgj pavelgj changed the title ci: fix CI checks broken by tool and dependency drift ci: fix tool/dependency drift and remove release-please Nov 16, 2026
The org-level zizmor check fails on mandatory audits for any workflow a PR
touches. Pin every action to a full commit SHA (latest release within the
already-referenced major, version in a trailing comment), move
tj-actions/changed-files off v45 (GHSA-mrrh-fwg8-r2c3) to the v47.0.6 pin
python.yml already uses, and add top-level `permissions: contents: read`
to every workflow that lacked one (jobs that need more already declare it).

Also drop the now-unneeded workflow-level write permissions in js.yml and
go.yml, fix a redundant clone flagged by current stable clippy (the Rust
workflow runs because rust.yml changed), and regenerate requirements.txt
with current uv.
@pavelgj pavelgj changed the title ci: fix tool/dependency drift and remove release-please ci: fix tool drift, pin actions, remove release-please Nov 16, 2026
@github-actions github-actions Bot added the rust Pull requests that update rust code label Nov 16, 2026
- zizmor fails on Medium/High findings in touched workflows: move
  deploy.yml's pages/id-token write to the deploy job, set
  persist-credentials: false on checkouts that don't push, and disable
  caching in publishing workflows (drop sccache from promptly-npm, set
  package-manager-cache/enable-cache to false).
- Bump golang.org/x/text to v0.39.0 (GO-2026-5970, flagged by govulncheck
  via ValidatePromptName). Same change as #641.
- gRPC example: the client is pinned to protobuf 4.x (Flutter 3.27) and the
  server to protobuf 6.0.x, so a single unpinned protoc_plugin can't
  generate code for both. Pin protoc_plugin per side (22.4.0 / 25.0.0).
- requirements.txt: restore the export command in the header.
@github-actions github-actions Bot added the go label Nov 16, 2026
@pavelgj
pavelgj merged commit 8ba9946 into main Nov 16, 2026
113 of 115 checks passed
@pavelgj
pavelgj deleted the pj/ci-pin-tools-m8x4q2v7nb branch November 16, 2026 19:42
pavelgj added a commit that referenced this pull request Nov 18, 2026
Release-please was removed from CI in #646. Drop its config, manifest and
validation script, and document the manual release process per package.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci config go python rust Pull requests that update rust code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant