Skip to content

Scope ANDROID_TEAM_PAT to weekly-stable-updates environment#1474

Merged
jonathanpeppers merged 1 commit into
mainfrom
jonathanpeppers/scope-android-team-pat-to-env
Jun 17, 2026
Merged

Scope ANDROID_TEAM_PAT to weekly-stable-updates environment#1474
jonathanpeppers merged 1 commit into
mainfrom
jonathanpeppers/scope-android-team-pat-to-env

Conversation

@jonathanpeppers

Copy link
Copy Markdown
Member

Our ANDROID_TEAM_PAT secret needs to live behind an environment so we can apply protection rules (reviewers, branch restrictions, etc.) instead of exposing it as a plain repo-level secret to every workflow.

This adds environment: weekly-stable-updates to the create-weekly-issue job in .github/workflows/weekly-stable-updates.yml. The existing ${{ secrets.ANDROID_TEAM_PAT }} reference now resolves from that environment's secret store.

Follow-up required before this is functional: create a weekly-stable-updates environment in repo Settings -> Environments and add the ANDROID_TEAM_PAT secret there. Until that's done, the "Assign issue to Copilot" step will fail to authenticate.

Adds an �nvironment: weekly-stable-updates reference to the create-weekly-issue job so the ANDROID_TEAM_PAT secret resolves from an environment-scoped secret rather than a repo-level secret. This lets us apply environment protection rules (reviewers, branch restrictions) to the PAT.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings June 17, 2026 15:55

Copilot AI left a comment

Copy link
Copy Markdown

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 scopes the ANDROID_TEAM_PAT secret to a GitHub Actions Environment so that access can be governed by environment protection rules instead of being available as a repository-level secret to all workflows.

Changes:

  • Adds environment: weekly-stable-updates to the create-weekly-issue job in the weekly workflow, so ${{ secrets.ANDROID_TEAM_PAT }} resolves from that environment’s secret store.

@jonathanpeppers jonathanpeppers merged commit 96217a8 into main Jun 17, 2026
3 checks passed
@jonathanpeppers jonathanpeppers deleted the jonathanpeppers/scope-android-team-pat-to-env branch June 17, 2026 19:05
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