fix: recompile review workflow with gh-aw v0.68.3 for activation permissions#35161
Merged
Conversation
…issions The review.agent.lock.yml compiled with v0.71.0 was missing pull-requests:write on the activation job, causing 403 errors when the workflow tried to add a 👀 reaction to /review comments. This is an upstream compiler bug (github/gh-aw#28767) where v0.69.3+ stripped pull-requests:write from activation jobs triggered by slash_command on PR comments. v0.68.3 is the current default/recommended version and correctly grants the required permissions. Tested: PolyPilot /review trigger succeeds with v0.68.3. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
|
🚀 Dogfood this PR with:
curl -fsSL https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.sh | bash -s -- 35161Or
iex "& { $(irm https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.ps1) } 35161" |
Member
Author
|
/review |
Contributor
There was a problem hiding this comment.
Pull request overview
Recompiles the gh-aw generated /review workflow lock file to restore the activation-job permissions needed to react to PR comments (fixing the 403 “Resource not accessible by integration” failure on /review).
Changes:
- Recompiled
.github/workflows/review.agent.lock.ymlusing gh-aw v0.68.3, updating the generated jobs/steps and restoringpull-requests: writeon the activation job. - Updated
.github/aw/actions-lock.jsonto reflect the newergithub/gh-aw-actions/setup@v0.68.3pin.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| .github/workflows/review.agent.lock.yml | Recompiled workflow; updates activation permissions and regenerates gh-aw job/step templates under v0.68.3. |
| .github/aw/actions-lock.json | Updates pinned gh-aw setup action version used by compilation outputs. |
Comment on lines
+13
to
+16
| "github/gh-aw-actions/setup@v0.68.3": { | ||
| "repo": "github/gh-aw-actions/setup", | ||
| "version": "v0.62.1", | ||
| "sha": "95c4e2aa6adbdf63ff0b0fbf09945ad4f4716fea" | ||
| }, | ||
| "github/gh-aw-actions/setup@v0.62.2": { | ||
| "repo": "github/gh-aw-actions/setup", | ||
| "version": "v0.62.2", | ||
| "sha": "20045bbd5ad2632b9809856c389708eab1bd16ef" | ||
| }, | ||
| "github/gh-aw-actions/setup@v0.71.0": { | ||
| "repo": "github/gh-aw-actions/setup", | ||
| "version": "v0.71.0", | ||
| "sha": "49157453228f9641824955e35cbeccbca74ee0fd" | ||
| "version": "v0.68.3", | ||
| "sha": "ba90f2186d7ad780ec640f364005fa24e797b360" |
Comment on lines
+1
to
+2
| # gh-aw-metadata: {"schema_version":"v3","frontmatter_hash":"82d8d133daf293c67e08d5c98b591c717b55d54b41fa74185de903df5cc9592f","compiler_version":"v0.68.3","strict":true,"agent_id":"copilot","agent_model":"claude-opus-4.6"} | ||
| # gh-aw-manifest: {"version":1,"secrets":["COPILOT_GITHUB_TOKEN","GH_AW_GITHUB_MCP_SERVER_TOKEN","GH_AW_GITHUB_TOKEN","GITHUB_TOKEN"],"actions":[{"repo":"actions/checkout","sha":"de0fac2e4500dabe0009e67214ff5f5447ce83dd","version":"v6.0.2"},{"repo":"actions/download-artifact","sha":"3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c","version":"v8.0.1"},{"repo":"actions/github-script","sha":"373c709c69115d41ff229c7e5df9f8788daa9553","version":"v9"},{"repo":"actions/github-script","sha":"3a2844b7e9c422d3c10d287c895573f7108da1b3","version":"v9"},{"repo":"actions/upload-artifact","sha":"043fb46d1a93c77aae656e7c1c64a875d1fc6a0a","version":"v7.0.1"},{"repo":"github/gh-aw-actions/setup","sha":"ba90f2186d7ad780ec640f364005fa24e797b360","version":"v0.68.3"}],"containers":[{"image":"ghcr.io/github/gh-aw-firewall/agent:0.25.20"},{"image":"ghcr.io/github/gh-aw-firewall/api-proxy:0.25.20"},{"image":"ghcr.io/github/gh-aw-firewall/squid:0.25.20"},{"image":"ghcr.io/github/gh-aw-mcpg:v0.2.19"},{"image":"ghcr.io/github/github-mcp-server:v0.32.0"},{"image":"node:lts-alpine"}]} |
Comment on lines
+46
to
+51
| # - ghcr.io/github/gh-aw-firewall/agent:0.25.20 | ||
| # - ghcr.io/github/gh-aw-firewall/api-proxy:0.25.20 | ||
| # - ghcr.io/github/gh-aw-firewall/squid:0.25.20 | ||
| # - ghcr.io/github/gh-aw-mcpg:v0.2.19 | ||
| # - ghcr.io/github/github-mcp-server:v0.32.0 | ||
| # - node:lts-alpine |
PureWeen
added a commit
to PureWeen/maui
that referenced
this pull request
Apr 27, 2026
Validates fix for dotnet#35161 — recompiled activation job has pull-requests:write for slash_command reactions. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Note
Are you waiting for the changes in this PR to be merged?
It would be very helpful if you could test the resulting artifacts from this PR and let us know in a comment if this change resolves your issue. Thank you!
Description
Recompiles
review.agent.lock.ymlwith gh-aw v0.68.3 to fix 403 errors on/reviewslash command activation.Problem
The lock file compiled with v0.71.0 (merged in #35111) was missing
pull-requests: writeon the activation job. When the workflow tried to add a 👀 reaction to a/reviewcomment on a PR, it failed with:GitHub requires
pull-requests: writeto add reactions to issue comments associated with PRs, even though the endpoint path is/issues/comments/.Root Cause
Upstream compiler bug in gh-aw v0.69.3+ — the activation job permissions were scoped too tightly, stripping
pull-requests: writeforslash_commandevents on PR comments. Filed as github/gh-aw#28767.Fix
Recompiled with gh-aw v0.68.3 (current default/recommended version), which correctly grants:
Testing
/reviewtrigger succeeds, activation passes, agent runs