fix(ci): skip agentic workflow activation for bot-triggered pull requests#1250
Conversation
…ests Co-authored-by: lpcox <15877973+lpcox@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
Updates GitHub Actions workflow activation gating to avoid failures when bot accounts trigger pull request events (due to collaborator permission checks returning 404 for bots).
Changes:
- Tighten
activationjobifconditions across multiple workflow lock files to skip activation on bot-triggeredpull_requestevents. - Preserve existing behavior for non-PR events and for PRs from forks (still skipped).
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| .github/workflows/smoke-copilot.lock.yml | Skip activation for bot-triggered PRs to prevent activation-time permission lookup failures |
| .github/workflows/smoke-codex.lock.yml | Same activation gating change for codex smoke workflow |
| .github/workflows/smoke-claude.lock.yml | Same activation gating change for claude smoke workflow |
| .github/workflows/smoke-chroot.lock.yml | Same activation gating change for chroot smoke workflow |
| .github/workflows/security-guard.lock.yml | Same activation gating change for security guard workflow |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
You can also share your feedback on Copilot code review. Take the survey.
| jobs: | ||
| activation: | ||
| if: (github.event_name != 'pull_request') || (github.event.pull_request.head.repo.id == github.repository_id) | ||
| if: (github.event_name != 'pull_request' || (github.event.pull_request.head.repo.id == github.repository_id && github.event.sender.type != 'Bot')) |
There was a problem hiding this comment.
This condition disables activation for all bot-authored PRs (e.g., Dependabot and any GitHub App bots), not just copilot-swe-agent[bot]. If activation should still run for some bots, consider narrowing the check to a specific actor/login (e.g., github.event.sender.login != 'Copilot') or using an allow/deny list so the operational impact is intentional. (Applies equally to the same if change in the other workflow lock files in this PR.)
| if: (github.event_name != 'pull_request' || (github.event.pull_request.head.repo.id == github.repository_id && github.event.sender.type != 'Bot')) | |
| if: (github.event_name != 'pull_request' || (github.event.pull_request.head.repo.id == github.repository_id && github.event.sender.login != 'copilot-swe-agent[bot]')) |
…#1249) * Initial plan * feat: add openai/anthropic api target flags for custom endpoints * Update src/cli.ts Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * fix(proxy): warn when custom api targets are not in --allow-domains Co-authored-by: lpcox <15877973+lpcox@users.noreply.github.com> * fix(ci): skip agentic workflow activation for bot-triggered pull requests (#1250) * Initial plan * fix(ci): skip agentic workflow activation for bot-triggered pull requests Co-authored-by: lpcox <15877973+lpcox@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: lpcox <15877973+lpcox@users.noreply.github.com> * fix: resolve pid-tracker integration test failure and add missing test coverage for API target validation (#1251) * Initial plan * fix: resolve failing Build and Lint (Node 22) CI workflow Co-authored-by: lpcox <15877973+lpcox@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: lpcox <15877973+lpcox@users.noreply.github.com> * fix(ci): remove unused Setup Scripts step from update_cache_memory jobs (#1252) * Initial plan * fix(ci): remove unused Setup Scripts step from update_cache_memory jobs Co-authored-by: lpcox <15877973+lpcox@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: lpcox <15877973+lpcox@users.noreply.github.com> * docs(proxy): document --openai-api-target and --anthropic-api-target in api-proxy-sidecar.md Co-authored-by: lpcox <15877973+lpcox@users.noreply.github.com> * fix: resolve test coverage regression and locked PR comment failure (#1254) * Initial plan * fix: resolve coverage regression and locked PR comment failure Co-authored-by: lpcox <15877973+lpcox@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: lpcox <15877973+lpcox@users.noreply.github.com> --------- Co-authored-by: anthropic-code-agent[bot] <242468646+Claude@users.noreply.github.com> Co-authored-by: Landon Cox <landon.cox@microsoft.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: lpcox <15877973+lpcox@users.noreply.github.com>
The
compute_text.cjsaction (gh-aw v0.47.0) callsGET /repos/{owner}/{repo}/collaborators/{username}/permissionduring activation, which returns 404 for bot accounts — causing unhandled failures whencopilot-swe-agent[bot](actor login:Copilot) opens or synchronizes a PR.Changes
smoke-copilot,smoke-claude,smoke-codex,smoke-chroot,security-guard): tighten theactivationjobifcondition to exclude bot-triggered PR eventsSchedule and
workflow_dispatchtriggers are unaffected. Human-created PRs continue to activate normally.Original prompt
📍 Connect Copilot coding agent with Jira, Azure Boards or Linear to delegate work to Copilot in one click without leaving your project management tool.