Skip to content

Require environment input to pat_pool shared workflow.#832

Merged
jeffhandley merged 4 commits into
mainfrom
jeffhandley/copilot-environment
Jun 25, 2026
Merged

Require environment input to pat_pool shared workflow.#832
jeffhandley merged 4 commits into
mainfrom
jeffhandley/copilot-environment

Conversation

@jeffhandley

Copy link
Copy Markdown
Member
  • Updates the PAT pool shared workflow to latest version
  • Updates the validate-pat-pool workflow to match other repos
  • Updates all agentic workflows to use the updated PAT pool import with the standard secret names used across other repos
  • The new version of the import does not require the 'needs' workaround but the issue-triage workflow's 'roles: all' configuration requires a different workaround to ensure the pre_activation job exists for the pat_pool job to be able to depend on it (necessary for ordering).

- Updates the PAT pool shared workflow to latest version
- Updates the validate-pat-pool workflow to match other repos
- Updates all agentic workflows to use the updated PAT pool import
  with the standard secret names used across other repos
- The new version of the import does not require the 'needs' workaround
  but the issue-triage workflow's 'roles: all' configuration requires
  a different workaround to ensure the pre_activation job exists for
  the pat_pool job to be able to depend on it (necessary for ordering).
@jeffhandley jeffhandley self-assigned this Jun 25, 2026
Copilot AI review requested due to automatic review settings June 25, 2026 08:36

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 updates the repository’s Agentic Workflows “PAT pool” integration to require an explicit environment input, standardizes PAT secret names to COPILOT_PAT_0..9, and updates the affected workflows (and their generated lockfiles) to consume PATs via the shared import while running inside a dedicated copilot-pat-pool environment.

Changes:

  • Require an environment input in shared/pat_pool.md and make pat_pool depend on pre_activation for ordering.
  • Migrate PAT secret naming/selection from COPILOT_GITHUB_TOKEN[_N] to COPILOT_PAT_0..9 across agentic workflows and lockfiles.
  • Update PAT pool documentation and the validation workflow to reflect environment-scoped usage.

Reviewed changes

Copilot reviewed 19 out of 19 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
.github/workflows/validate-pat-pool.yml Validates COPILOT_PAT_0..9 and runs under the copilot-pat-pool environment.
.github/workflows/shared/pat_pool.README.md Documents environment setup, env secrets, and updated PAT pool usage.
.github/workflows/shared/pat_pool.md Makes environment a required import input; expands pool to 10 slots; orders after pre_activation.
.github/workflows/pr-malicious-scan.agent.md Updates workflow frontmatter to import pat_pool with environment + new secret names.
.github/workflows/pr-malicious-scan.agent.lock.yml Regenerated compiled workflow reflecting env + COPILOT_PAT_0..9.
.github/workflows/markdown-linter.md Updates workflow frontmatter to import pat_pool with environment + new secret names.
.github/workflows/markdown-linter.lock.yml Regenerated compiled workflow reflecting env + COPILOT_PAT_0..9.
.github/workflows/issue-triage.md Updates workflow frontmatter to import pat_pool with environment; adds workaround to force pre_activation.
.github/workflows/issue-triage.lock.yml Regenerated compiled workflow reflecting env + COPILOT_PAT_0..9 and new pre_activation behavior.
.github/workflows/issue-investigate.md Updates workflow frontmatter to import pat_pool with environment + new secret names.
.github/workflows/issue-investigate.lock.yml Regenerated compiled workflow reflecting env + COPILOT_PAT_0..9.
.github/workflows/devops-health-investigate.md Updates workflow frontmatter to import pat_pool with environment + new secret names.
.github/workflows/devops-health-investigate.lock.yml Regenerated compiled workflow reflecting env + COPILOT_PAT_0..9.
.github/workflows/devops-health-groom.md Updates workflow frontmatter to import pat_pool with environment + new secret names.
.github/workflows/devops-health-groom.lock.yml Regenerated compiled workflow reflecting env + COPILOT_PAT_0..9.
.github/workflows/devops-health-check.md Updates workflow frontmatter to import pat_pool with environment + new secret names.
.github/workflows/devops-health-check.lock.yml Regenerated compiled workflow reflecting env + COPILOT_PAT_0..9.
.github/workflows/close-stale-prs.agent.md Updates workflow frontmatter to import pat_pool with environment + new secret names.
.github/workflows/close-stale-prs.agent.lock.yml Regenerated compiled workflow reflecting env + COPILOT_PAT_0..9.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/validate-pat-pool.yml
Comment thread .github/workflows/validate-pat-pool.yml Outdated
Comment thread .github/workflows/shared/pat_pool.md
Comment thread .github/workflows/shared/pat_pool.README.md
Comment thread .github/workflows/shared/pat_pool.README.md Outdated
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings June 25, 2026 09:13

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

Copilot reviewed 19 out of 19 changed files in this pull request and generated 2 comments.

Comment thread .github/workflows/validate-pat-pool.yml Outdated
Comment thread .github/workflows/validate-pat-pool.yml
@github-actions github-actions Bot added the waiting-on-author PR state label label Jun 25, 2026
@github-actions

Copy link
Copy Markdown
Contributor

👋 @jeffhandley — this PR has 2 unresolved review thread(s). When you're ready, please address the feedback and push an update; the triage bot will pick up the next state automatically. (Add the no-stale label to silence further pings.)

@jeffhandley jeffhandley merged commit 11c5dfc into main Jun 25, 2026
36 checks passed
@jeffhandley jeffhandley deleted the jeffhandley/copilot-environment branch June 25, 2026 22:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

waiting-on-author PR state label

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants