Fix PR duplicate check role gating#2241
Merged
aaronpowell merged 1 commit intoJul 8, 2026
Merged
Conversation
Remove the read-only role override from the PR duplicate check so gh-aw pre-activation gates unsupported actors before the PR checkout step runs. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adjusts the PR Duplicate Check agentic workflow configuration so that role gating is enforced via the generated pre-activation logic (instead of an explicit roles: all override), preventing read-only/untrusted actors from reaching the checkout/agent execution phases.
Changes:
- Removed the
roles: alloverride from the source workflow (pr-duplicate-check.md). - Regenerated the compiled
pr-duplicate-check.lock.yml, introducing apre_activationjob and gating theactivationjob on itsactivatedoutput (plus propagating trace context).
Show a summary per file
| File | Description |
|---|---|
| .github/workflows/pr-duplicate-check.md | Removes the explicit roles: all override so default role gating behavior applies. |
| .github/workflows/pr-duplicate-check.lock.yml | Updates the compiled workflow to run a pre_activation membership check and only proceed to activation/checkout when authorized. |
Review details
- Files reviewed: 2/2 changed files
- Comments generated: 0
- Review effort level: Low
aaronpowell
approved these changes
Jul 8, 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
roles: alloverride from the PR duplicate check workflowValidation
gh aw compile pr-duplicate-check --strictnpm run buildbash eng/fix-line-endings.shgit diff --check