Skip to content

Harden external-PR workflows and restrict command triggers#3

Merged
e271828- merged 5 commits intoIntuitionMachines:mainfrom
e271828-:codex/security-gha-pr-token-exfil
Mar 2, 2026
Merged

Harden external-PR workflows and restrict command triggers#3
e271828- merged 5 commits intoIntuitionMachines:mainfrom
e271828-:codex/security-gha-pr-token-exfil

Conversation

@e271828-
Copy link
Copy Markdown

@e271828- e271828- commented Mar 2, 2026

Summary

  • stop checking out untrusted approved PR commits in .github/workflows/e2e-external-phase-2.yml before running secret-bearing test steps
  • keep testing target selection via COVERAGE_COMMENT_E2E_ACTION_REF, but execute the harness from trusted workflow code
  • require /e2e and /invite triggers to come from repo maintainers (OWNER/MEMBER)

Security impact

This prevents exfiltration of long-lived e2e tokens from untrusted PR code execution and blocks arbitrary commenters from triggering secret-backed invite actions.

Validation

  • YAML parse validation for updated workflow files (Psych.safe_load)

@github-actions
Copy link
Copy Markdown

github-actions bot commented Mar 2, 2026

End-to-end public repo

Admin commands cheatsheet:

  • /e2e (in approved PR review body): Trigger end-to-end tests on external contributions
  • /invite (in comment): Invite the author & admins to the end-to-end private repo

@github-actions
Copy link
Copy Markdown

github-actions bot commented Mar 2, 2026

Coverage report

This PR does not seem to contain any modification to coverable code.

@e271828- e271828- merged commit 21ce876 into IntuitionMachines:main Mar 2, 2026
1 check passed
@e271828- e271828- deleted the codex/security-gha-pr-token-exfil branch March 2, 2026 03:55
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.

1 participant