Skip to content

Split Evergreen PR trigger from agent workflow#358

Merged
mrjf merged 1 commit into
mainfrom
codex/evergreen-trigger-workflow
Jun 27, 2026
Merged

Split Evergreen PR trigger from agent workflow#358
mrjf merged 1 commit into
mainfrom
codex/evergreen-trigger-workflow

Conversation

@mrjf

@mrjf mrjf commented Jun 27, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Removes direct pull_request activation from the agentic Evergreen workflow.
  • Adds workflow_call inputs to .github/workflows/evergreen.md and recompiles .github/workflows/evergreen.lock.yml.
  • Adds a plain .github/workflows/evergreen-trigger.yml using pull_request_target to gate labeled PR events before calling the reusable Evergreen lockfile.
  • Passes pr_number and head_sha into the callable workflow; Evergreen re-fetches the PR and no-ops if the head SHA has changed.

Why

The prior pull_request trigger could hit gh-aw confused-deputy protection on bot-authored PRs: the run appeared successful, but pre-activation skipped the agent. This keeps fast PR-event reaction without handing raw PR-event context directly to the agentic workflow.

Verification

  • gh aw compile succeeded; existing unrelated Autoloop/CI Doctor warnings were emitted.
  • gh aw compile evergreen succeeded with 0 errors and 0 warnings.
  • actionlint .github/workflows/evergreen-trigger.yml
  • git diff --check
  • apm compile attempted; repo is not an APM project because no apm.yml exists.

Note: I scoped the commit to Evergreen files and did not include unrelated lockfile churn from the full gh aw compile run.

@mrjf mrjf merged commit a7a548e into main Jun 27, 2026
19 checks passed
@mrjf mrjf deleted the codex/evergreen-trigger-workflow branch June 27, 2026 18:42
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