Skip to content

Upgrade gh-aw to v0.79.8 and isolate PAT pool into copilot-pat-pool environment - #54969

Merged
jeffhandley merged 4 commits into
dotnet:mainfrom
jeffhandley:jeffhandley/agentic-environment
Jun 26, 2026
Merged

jeffhandley merged 4 commits into
dotnet:mainfrom
jeffhandley:jeffhandley/agentic-environment

Conversation

@jeffhandley

Copy link
Copy Markdown
Member
  • Add copilot-pat-pool environment to pat_pool.md shared workflow
  • Add copilot-pat-pool environment to validate-pat-pool.yml
  • Add copilot-pat-pool environment to add-tactics-template-on-comment.md workflow
  • Remove default fall-back PAT (secrets.COPILOT_GITHUB_TOKEN) from case statements, use 'NO COPILOT PAT AVAILABLE' sentinel
  • Update comment blocks to describe environment isolation
  • Upgrade actions-lock.json to gh-aw-actions/setup v0.79.8 and actions/checkout v6.0.3
  • Recompile add-tactics-template-on-comment.lock.yml with gh-aw v0.79.8 (--schedule-seed dotnet/sdk)
  • Update pat_pool.README.md usage examples to match

…nvironment

- Add copilot-pat-pool environment to pat_pool.md shared workflow
- Add copilot-pat-pool environment to validate-pat-pool.yml
- Add copilot-pat-pool environment to add-tactics-template-on-comment.md workflow
- Remove default fall-back PAT (secrets.COPILOT_GITHUB_TOKEN) from case statements, use 'NO COPILOT PAT AVAILABLE' sentinel
- Update comment blocks to describe environment isolation
- Upgrade actions-lock.json to gh-aw-actions/setup v0.79.8 and actions/checkout v6.0.3
- Recompile add-tactics-template-on-comment.lock.yml with gh-aw v0.79.8 (--schedule-seed dotnet/sdk)
- Update pat_pool.README.md usage examples to match

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

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

This PR upgrades the repository’s agentic workflow tooling to gh-aw v0.79.8 and tightens Copilot PAT handling by isolating the PAT pool behind a dedicated copilot-pat-pool environment, removing the default fallback token path.

Changes:

  • Add environment: copilot-pat-pool to PAT-pool related workflows/imports so PAT secrets are only accessible within the isolated environment.
  • Remove the default fallback secrets.COPILOT_GITHUB_TOKEN from case(...) lookups and replace with a sentinel value ('NO COPILOT PAT AVAILABLE').
  • Upgrade pinned action references (including github/gh-aw-actions/[email protected] and actions/[email protected]) and recompile the add-tactics-template-on-comment lock workflow with the new gh-aw version.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
.github/workflows/validate-pat-pool.yml Runs validation within the isolated copilot-pat-pool environment.
.github/workflows/shared/pat_pool.README.md Updates usage guidance to require the isolated environment and removes fallback PAT behavior.
.github/workflows/shared/pat_pool.md Ensures the imported PAT pool job runs under copilot-pat-pool.
.github/workflows/add-tactics-template-on-comment.md Applies the isolated environment and sentinel PAT fallback to the authoring workflow.
.github/workflows/add-tactics-template-on-comment.lock.yml Regenerated lock workflow with gh-aw v0.79.8, updated pins, and expanded runtime/guardrail logic.
.github/aw/actions-lock.json Updates pinned action SHAs/versions for checkout and gh-aw setup.

@jeffhandley

Copy link
Copy Markdown
Member Author

/ba-g unrelated failures

@jeffhandley
jeffhandley merged commit c6775b9 into dotnet:main Jun 26, 2026
24 of 26 checks passed
@jjonescz

jjonescz commented Jun 26, 2026 •

Copy link
Copy Markdown
Member

@jeffhandley I'm getting an error from this workflow (which adds a notification to my github inbox) on seemingly every comment I publish:

https://github.com/dotnet/sdk/actions/workflows/add-tactics-template-on-comment.lock.yml

One example: https://github.com/dotnet/sdk/actions/runs/28228186044

@jeffhandley
jeffhandley deleted the jeffhandley/agentic-environment branch June 26, 2026 18:09
@jeffhandley

Copy link
Copy Markdown
Member Author

The config is fixed, @jjonescz. Sorry for the disruption; thanks for reporting!

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.

4 participants