Skip to content

ci(consistency): declare contents: read on the Consistency workflow#3490

Open
arpitjain099 wants to merge 1 commit into
Azure:mainfrom
arpitjain099:ci/add-permissions
Open

ci(consistency): declare contents: read on the Consistency workflow#3490
arpitjain099 wants to merge 1 commit into
Azure:mainfrom
arpitjain099:ci/add-permissions

Conversation

@arpitjain099
Copy link
Copy Markdown

Pins the default GITHUB_TOKEN to read-only for consistency.yml, the lint / format / changelog-verify workflow that runs on PRs, pushes to main, and the merge group.

The sibling prepare-auto-release-branch.yml already declares a top-level permissions: block (granting contents: write there), so this PR follows the same style for the read-only workflow.

Verified by parsing the YAML with python3 -c "import yaml; yaml.safe_load(open('.github/workflows/consistency.yml'))". No behavior change.

The Consistency workflow runs lint / format / changelog-verify checks on
pull_request and push to main and doesn't touch the API. Mirror the
top-level permissions style already used in prepare-auto-release-branch.yml
and pin the default GITHUB_TOKEN to read-only.

Signed-off-by: Arpit Jain <arpitjain099@gmail.com>
@microsoft-github-policy-service microsoft-github-policy-service Bot added customer-reported Issues that are reported by GitHub users external to the Azure organization. Community Contribution Community members are working on the issue labels May 13, 2026
@arpitjain099
Copy link
Copy Markdown
Author

Hi @msyyc, gentle ping on this. PR has been open for 4 days without review. I noticed you've been on the recent-merger side of recent merges in this repo. When you have a moment, would you mind giving it a quick look? No urgency. Happy to address any feedback.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds a top-level permissions: contents: read block to the Consistency workflow to follow least-privilege best practice for the default GITHUB_TOKEN.

Changes:

  • Declares read-only contents permission at the workflow level in consistency.yml.

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

Labels

Community Contribution Community members are working on the issue customer-reported Issues that are reported by GitHub users external to the Azure organization.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants