Skip to content

ci: run main-only secret consumers in the main environment - #31763

Merged
sreya merged 2 commits into
mainfrom
ci/main-environment
Nov 7, 2026
Merged

sreya merged 2 commits into
mainfrom
ci/main-environment

Conversation

@sreya

@sreya sreya commented Nov 5, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

sreya added a commit that referenced this pull request Nov 6, 2026
Backport of the `contrib.yaml` change in #31763 to `release/2.29`.

`cla` now run in the `main` environment and only for PRs that target
`main` (or CLA comments, which always run from the default branch).
`pull_request_target` runs this file from the base branch, so without
this, PRs targeting `release/2.29` keep reading `CDRCI2_GITHUB_TOKEN`
from repo-level secrets, which blocks deleting them. On this branch the
jobs now skip, matching `main`; a skipped job satisfies required checks.

@sreya for review.

---
_Generated with Coder Agents._
sreya added a commit that referenced this pull request Nov 6, 2026
Backport of the `contrib.yaml` change in #31763 to `release/2.31`.

`cla` now run in the `main` environment and only for PRs that target
`main` (or CLA comments, which always run from the default branch).
`pull_request_target` runs this file from the base branch, so without
this, PRs targeting `release/2.31` keep reading `CDRCI2_GITHUB_TOKEN`
from repo-level secrets, which blocks deleting them. On this branch the
jobs now skip, matching `main`; a skipped job satisfies required checks.

@sreya for review.

---
_Generated with Coder Agents._
@cjfit

cjfit commented Nov 6, 2026

Copy link
Copy Markdown
Collaborator

NO FINDINGS — No reachable security defect introduced or materially worsened by this change was confirmed.

Reviewed base 4fe64af03b886b0f9897e9b41e0e51d5ede268ba → head 0dbcba48baccc9a9a762692111073de5451a8d7d.

  • Coverage: Compared all 10 changed workflows, checking event admission, job guards, checkout refs, credential consumers, token permissions, and publication steps. Checked the contribution jobs’ main-base restrictions (.github/workflows/contrib.yaml:30–35,103–107), exclusion of PR runs from the environment in the docs workflow (.github/workflows/weekly-docs.yaml:67), and the retained main-ref guard on CI notifications (.github/workflows/ci.yaml:1771). The eval workflow’s push-permission and fork checks still precede the credential-bearing job (.github/workflows/eval-coder-agents.yaml:89–94,116).
  • Environment: On November 6, 2026, GitHub’s environment and deployment-branch-policy APIs showed main restricted to the branch named main. This is current configuration evidence, not a claim about historical settings.
  • Verification: Read-only source comparison and configuration inspection; no workflows or repository code executed, and no secret values accessed. This verdict concerns incremental security risk, not operational validation of secret migration.

Generated by Coder Agents on behalf of @cjfit.

@sreya
sreya merged commit eb61630 into main Nov 7, 2026
29 checks passed
@sreya
sreya deleted the ci/main-environment branch November 7, 2026 00:52
@sreya
sreya temporarily deployed to main November 7, 2026 00:52 — with GitHub Actions Inactive
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 7, 2026

This branch was previously deployed

1 inactive deployment
main — 0dbcba48 Deployed Nov 7, 2026 by sreya via cla #252008
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants