Reduce workflow credential exposure#7270
Merged
moonbox3 merged 2 commits intoJul 22, 2026
Merged
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: d9fa4e9c-c32d-42fb-8ee4-4772473e6479
Contributor
There was a problem hiding this comment.
Pull request overview
Updates GitHub automation workflows to reduce metadata exposure in run logs by sourcing non-mode GitHub App authentication configuration from masked secrets, while keeping the rollout/auth mode controlled via vars.GH_APP_AUTH_MODE as requested in #7269.
Changes:
- Replaced
vars.GH_APP_*(non-mode auth config) withsecrets.GH_APP_*across the affected workflows. - Kept
modeasvars.GH_APP_AUTH_MODEto preserve the existing rollout control mechanism. - Applied the same masking approach consistently to both call sites in workflows that request tokens multiple times.
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| .github/workflows/stale-issue-pr-ping.yml | Switches GitHub App auth configuration inputs to secrets.* for masking in scheduled/manual stale ping automation. |
| .github/workflows/limit-community-prs.yml | Updates both token acquisition steps to use secrets.*, keeping mode in vars.* while masking other auth config. |
| .github/workflows/label-pr.yml | Uses secrets.* for GitHub App auth configuration in the PR labeling workflow (pull_request_target). |
| .github/workflows/label-issues.yml | Uses secrets.* for GitHub App auth configuration in the issue labeling workflow. |
| .github/workflows/issue-triage.yml | Uses secrets.* for GitHub App auth configuration in issue triage automation while keeping mode in vars.*. |
| .github/workflows/devflow-pr-review.yml | Uses secrets.* for GitHub App auth configuration in the PR review workflow while preserving existing mode control. |
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: d9fa4e9c-c32d-42fb-8ee4-4772473e6479
moonbox3
marked this pull request as ready for review
July 22, 2026 23:49
alliscode
approved these changes
Jul 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation & Context
Workflow run logs currently expose configuration metadata that does not need to be public, and DevFlow depends on a separately managed user credential for Copilot requests. These values and credentials should be minimized while preserving the established authentication behavior and rollout controls.
Description & Review Guide
copilot-requests: writeand use their run-scoped GitHub token for Copilot authentication.Related Issue
Fixes #7269
Contribution Checklist
breaking changelabel (or add "[BREAKING]" to the title prefix, before or after any language prefix) — a workflow keeps the label and title prefix in sync automatically.