Problem
The activation job in compiled workflows fails when triggered by pull_request events. The add_reaction step attempts to add a 🚀 reaction to the PR but gets a 403: Resource not accessible by integration error, which causes the entire activation job to fail and skips all downstream jobs (agent, safe_outputs, conclusion).
Reproduction
- Any workflow compiled with gh-aw v0.68.5 that triggers on
pull_request
- Open a PR to trigger the workflow
- Activation job fails at the "Add reaction" step
Error
POST /repos/github/gh-aw-firewall/issues/2034/reactions - 403
##[error]Failed to add reaction: Resource not accessible by integration
##[error]ERR_API: Failed to add reaction: Resource not accessible by integration
Root Cause
The pull_request event provides a read-only GITHUB_TOKEN by default. The add_reaction.cjs step requires write access to the issues/reactions API, which is not available with the default pull_request token permissions.
Workflows triggered by pull_request_target, issue_comment, or workflow_dispatch have sufficient permissions, but pull_request does not.
Expected Behavior
The activation job should not fail due to a cosmetic reaction step. Options:
- Make the reaction step non-fatal (continue-on-error)
- Skip the reaction step when the token lacks sufficient permissions
- Gate the reaction step on the event type (skip for
pull_request)
Environment
Problem
The activation job in compiled workflows fails when triggered by
pull_requestevents. Theadd_reactionstep attempts to add a 🚀 reaction to the PR but gets a 403: Resource not accessible by integration error, which causes the entire activation job to fail and skips all downstream jobs (agent, safe_outputs, conclusion).Reproduction
pull_requestError
Root Cause
The
pull_requestevent provides a read-onlyGITHUB_TOKENby default. Theadd_reaction.cjsstep requires write access to the issues/reactions API, which is not available with the defaultpull_requesttoken permissions.Workflows triggered by
pull_request_target,issue_comment, orworkflow_dispatchhave sufficient permissions, butpull_requestdoes not.Expected Behavior
The activation job should not fail due to a cosmetic reaction step. Options:
pull_request)Environment
smoke-copilot-byok.lock.yml)pull_request