Skip to content

Revert pr.yaml trigger to pull_request#74

Closed
Chris-Wolfgang wants to merge 2 commits into
mainfrom
fix/pr-yaml-trigger
Closed

Revert pr.yaml trigger to pull_request#74
Chris-Wolfgang wants to merge 2 commits into
mainfrom
fix/pr-yaml-trigger

Conversation

@Chris-Wolfgang
Copy link
Copy Markdown
Owner

Summary

  • pull_request_target trigger from PR Upgrade pr.yaml to v3 (Gated) #72 never fired — GitHub received PR events but the workflow never ran, blocking all CI checks on open PRs
  • Revert to pull_request trigger which worked reliably
  • Remove ref:/persist-credentials: checkout overrides (only needed for pull_request_target)
  • Keep all other v3 improvements (gated stages, detect-projects, trusted config fetch, security scans)

Test plan

🤖 Generated with Claude Code

pull_request_target never fired after PR #72 merged — GitHub received
the PR events but the workflow never ran, blocking all CI checks.

Revert to pull_request trigger which worked reliably with v2. Also
remove the ref/persist-credentials overrides that were only needed
for pull_request_target (pull_request already checks out PR code).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings April 16, 2026 02:11
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the repository’s gated CI workflow to reliably run on PRs again by reverting the workflow trigger from pull_request_target back to pull_request, and removing checkout overrides that were only needed for pull_request_target.

Changes:

  • Revert CI trigger from pull_request_target to pull_request for PR validation.
  • Remove ref: refs/pull/.../head and persist-credentials: overrides from actions/checkout steps.
  • Update the workflow’s security note to reflect the new trigger model (while keeping “trusted config fetch” behavior).

Comment thread .github/workflows/pr.yaml
Comment thread .github/workflows/pr.yaml
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