Skip to content

Harden /ok-to-test gate and restrict E2E token permissions - #205

Merged
JillRegan merged 2 commits into
mainfrom
fix/ok-to-test-sha-gate
Dec 1, 2026
Merged

JillRegan merged 2 commits into
mainfrom
fix/ok-to-test-sha-gate

Conversation

@JillRegan

Copy link
Copy Markdown
Contributor

Changes

  • /ok-to-test now requires the full 40-character SHA, compares it exactly to the PR head, and checks out only the approved commit (previously a substring match).
  • Payload values are passed through env: instead of being interpolated into the script.
  • The E2E workflows now default to contents: read. The e2e job grants only id-token: write on top of that, for Workload Identity.
  • Docs updated to say the full SHA is required.

@JillRegan
JillRegan requested a review from a team December 1, 2026 22:11
@rr3khan

rr3khan commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

/ok-to-test

@JillRegan
JillRegan merged commit d93c1f6 into main Dec 1, 2026
16 checks passed
@JillRegan
JillRegan deleted the fix/ok-to-test-sha-gate branch December 1, 2026 22:32
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