Disable checkout for PR risk classifier - #879
Merged
Merged
Conversation
The API-only risk classifier does not execute pull request code, but its generated workflow attempted to check out contributor branches. This caused pull_request_target runs for fork PRs to fail when the author lacked write permission. Disable checkout and regenerate the lock with gh-aw v0.83.4.
Contributor
There was a problem hiding this comment.
Pull request overview
Disables repository/PR-branch checkout for the classify-pull-request-risk gh-aw workflow, aligning the generated Actions workflow with the intended API-only execution model for pull_request_target (avoiding fork-permission checkout failures).
Changes:
- Add
checkout: falseto the workflow markdown definition to prevent any repo/PR checkout. - Regenerate the compiled lock workflow, removing checkout-related steps and outputs.
Show a summary per file
| File | Description |
|---|---|
| .github/workflows/classify-pull-request-risk.md | Sets checkout: false in the gh-aw frontmatter to disable checkout. |
| .github/workflows/classify-pull-request-risk.lock.yml | Regenerated compiled workflow reflecting checkout removal (steps/outputs related to PR checkout removed). |
Review details
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
- Files reviewed: 2/2 changed files
- Comments generated: 0
- Review effort level: Lite
Quim Muntal (qmuntal)
enabled auto-merge
August 20, 2026 16:21
George Adams (gdams)
approved these changes
Aug 21, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
gh-aw v0.83.4Rationale
The classifier runs from
pull_request_targetand reads pull request data through GitHub APIs; it explicitly does not execute contributor code. Its generated agent job nevertheless attempted to check out the PR branch. For fork PRs,gh-awrejects that checkout when the actor lacks repository write permission, so the workflow failed before inference.checkout: falseremoves that unnecessary checkout and lets external-contributor PRs reach classification without weakening the trust boundary.Failed run: https://github.com/microsoft/agent-framework-go/actions/runs/32364877561/job/96418371409
Validation
gh aw --version(v0.83.4)gh aw compile classify-pull-request-risk --strict(0 errors, 0 warnings)gh aw compile --strict(5 workflows, 0 errors, 0 warnings)