fix(ci): require Codex credential before investigator activation - #948
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
🔍 PR Validation✅ Current validation passed. |
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.Snapshot WarningsEnsure that dependencies are being submitted on PR branches and consider enabling retry-on-snapshot-warnings. See the documentation for more information and troubleshooting advice. Scanned FilesNone |
Agent Completion Truth Gate: BLOCKEDReasons: Machine-readable verdict{
"details": {
"invalid_fields": [
"policy.agent_login",
"policy.run_id"
]
},
"reasons": [
"invalid_payload"
],
"verdict": "blocked"
} |
|
@claude Can you find out why these are falling |
There was a problem hiding this comment.
Pull request overview
Adds a dedicated Codex credential guard for the CI investigator workflow.
Changes:
- Adds a
CODEX_API_KEYpre-agent guard. - Adds governance assertions and regenerates the lock workflow.
- Records the change in the workflow audit.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
.github/workflows/eventrelay-ci-investigator.md |
Defines the credential guard. |
.github/workflows/eventrelay-ci-investigator.lock.yml |
Regenerates the compiled workflow. |
tests/unit/test_gh_aw_workflow_governance.py |
Tests credential-gate configuration. |
.github/workflows/AUDIT.md |
Documents the workflow fix. |
|
@groupthinking Here's why the checks are red on this PR — two distinct gates, both by design, plus one cosmetic warning: 1. The truth gate reads agent provenance from a linked agent-task issue, not from the PR. This PR has:
Legitimate fix (human-initiated by design): open an [Agent] task issue ( 2.
3. PR-validation warning: the title Bottom line: Vercel + dependency-review are green; the two red gates are governance controls working as designed and both terminate at a human action (create/link the agent-task issue; provision the trusted publisher). The code change itself (the Generated by Claude Code |

Purpose
Require the dedicated
CODEX_API_KEYbefore the EventRelay CI Investigator reaches gh-aw activation or agent startup.Closes #949
Progresses #898
Corrected implementation
pre-agent-stepsintoon.steps, which gh-aw compiles into thepre_activationjob.gh-aw v0.82.14.Exact-head verification
Exact head:
5ab39e2e9d8567233bac388964080dff50edb300Protected boundary
The repository secret itself is not added, displayed, or mutated by this PR. A repository owner must configure/authorize
CODEX_API_KEYbefore the workflow can execute successfully.Execution disposition
This was a direct controller repair on the existing canonical branch after the original pre-agent implementation was proven too late. No delegated agent execution is claimed, so no agent run receipt is fabricated.
No
artifact_readyevent is asserted without a provider run ID.