Skip to content

chore: use environments for various CI pipelines (#31654) - #31724

Open
sreya wants to merge 1 commit into
release/2.31from
backport/31654-to-2.31
Open

sreya wants to merge 1 commit into
release/2.31from
backport/31654-to-2.31

Conversation

@sreya

@sreya sreya commented Nov 3, 2026

Copy link
Copy Markdown
Collaborator

Backport of #31654 to release/2.31.

Original PR: #31654 (chore: use environments for various CI pipelines)
Merge commit: b0cc77d

Release tags run the release.yaml from their own branch, and pushes to this branch run its own ci.yaml. Without this backport, releases and builds from release/2.31 keep reading the repo-level signing secrets and break once those are deleted.

Changes: the cherry-pick conflicted because this branch predates the setup-mise and pnpm-install actions, so I reapplied the same intent by hand:

  • release.yaml release: environment: release. publish-homebrew and publish-winget: environment: release-publish.
  • ci.yaml build: environment: ci-signing.
  • Signing jobs no longer restore shared caches: setup-go gets use-cache: false, and setup-node gets a new use-cache input (default "true") that these jobs set to "false".
  • Dry-run SBOM fix: the SBOM is only passed to publish.sh on real releases.
  • release.yaml build-dylib: environment: release (it signs with the Apple secrets) and setup-go caching off. Note: build-dylib and release both use release, so a release from this branch asks for approval twice.
  • ci.yaml build-dylib: environment: ${{ (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/heads/release/')) && 'ci-signing' || '' }}, because this job also runs unsigned on PRs, where the ci-signing branch policy would reject it. Plus setup-go caching off. This PR's own CI exercises the no-environment path.
  • Dropped: the pnpm-install change (that action doesn't exist here) and the Dependabot changes (Dependabot only reads its config from the default branch).

@sreya for review.


Generated with Coder Agents.

Backport of #31654, adapted for release branches that predate the
setup-mise and pnpm-install actions: signing jobs now disable the
setup-go and setup-node caches instead.

(cherry picked from commit b0cc77d)

Generated with Coder Agents.
@sreya sreya self-assigned this Nov 3, 2026
@github-actions

github-actions Bot commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

👋 Hey @sreya!

This PR is targeting the release/2.31 release branch, but its title does not start with fix: or fix(scope):.

Only bug fixes should be cherry-picked to release branches. If this is a bug fix, please update the PR title to match the conventional commit format:

fix: description of the bug fix
fix(scope): description of the bug fix

If this is not a bug fix, it likely should not target a release branch.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants