Skip to content

Use PAT pool for Issue Monster threat detection - #55774

Merged
nagilson merged 1 commit into
dotnet:mainfrom
nagilson:nagilson/issue-monster-threat-detection-pat
Aug 13, 2026
Merged

nagilson merged 1 commit into
dotnet:mainfrom
nagilson:nagilson/issue-monster-threat-detection-pat

Conversation

@nagilson

Copy link
Copy Markdown
Member

Summary

Use the PAT selected by the Issue Monster PAT pool for threat detection in both the orchestrator and assigner workflows.

The main agent already used the selected PAT, but generated threat-detection jobs used ${{ github.token }}. On dotnet/sdk, that token received HTTP 403 from the gh-aw API proxy because centralized Copilot CLI billing is not enabled, causing threat detection to warn and abort the non-reviewable dispatch_workflow output.

Validation

Follow-up to #55763 and https://github.com/dotnet/sdk/actions/runs/31722344313.

Co-authored-by: Copilot <[email protected]>

Copilot-Session: bea45b91-7d79-4669-a8af-fa6ab75471f0
Copilot AI lite review requested due to automatic review settings August 13, 2026 17:24
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 2 pipeline(s).
1 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the Issue Monster orchestrator and assigner agentic workflows so their threat-detection jobs use the PAT chosen by the PAT pool (via COPILOT_GITHUB_TOKEN), instead of falling back to ${{ github.token }} which can 403 through the gh-aw API proxy on dotnet/sdk.

Changes:

  • Configure the threat-detection engine in issue-monster.md to set COPILOT_GITHUB_TOKEN from the PAT pool selection.
  • Configure the threat-detection engine in issue-monster-assigner.md to set COPILOT_GITHUB_TOKEN from the PAT pool selection.
  • Regenerate both corresponding .lock.yml workflows to reflect the updated threat-detection token wiring.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
.github/workflows/issue-monster.md Adds PAT-pool-backed COPILOT_GITHUB_TOKEN to the threat-detection engine configuration.
.github/workflows/issue-monster.lock.yml Regenerated lockfile reflecting the threat-detection token change.
.github/workflows/issue-monster-assigner.md Adds PAT-pool-backed COPILOT_GITHUB_TOKEN to the threat-detection engine configuration.
.github/workflows/issue-monster-assigner.lock.yml Regenerated lockfile reflecting the threat-detection token change.

@nagilson
nagilson merged commit ebe7798 into dotnet:main Aug 13, 2026
10 of 23 checks passed
@nagilson

Copy link
Copy Markdown
Member Author

Thanks very much for your speedy review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants