Skip to content

ci(azure-sdk-tools): declare contents: read#46863

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

ci(azure-sdk-tools): declare contents: read#46863
arpitjain099 wants to merge 1 commit into
Azure:mainfrom
arpitjain099:ci/add-permissions

Conversation

@arpitjain099

Copy link
Copy Markdown

Every other workflow in .github/workflows/ here already declares a top-level permissions block. azure-sdk-tools.yml is the one outlier.

The job only checks out the tree and runs pytest, black, and an azpysdk command-discovery script against eng/tools/azure-sdk-tools. No GitHub API writes. Adding permissions: contents: read aligns it with the existing pattern (see event.yml using permissions: {}, post-apiview.yml using contents: read + pull-requests: write, etc.).

YAML re-parsed locally. No behavior change.

Copilot AI review requested due to automatic review settings May 13, 2026 09:46
@arpitjain099 arpitjain099 requested a review from a team as a code owner May 13, 2026 09:46
@github-actions github-actions Bot added Community Contribution Community members are working on the issue customer-reported Issues that are reported by GitHub users external to the Azure organization. labels May 13, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Thank you for your contribution @arpitjain099! We will review the pull request and get back to you soon.

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

Adds an explicit minimal-permissions configuration to the azure-sdk-tools GitHub Actions workflow to align with the repository’s established pattern of declaring top-level permissions.

Changes:

  • Declares top-level permissions: contents: read in .github/workflows/azure-sdk-tools.yml to ensure the workflow token is scoped to read-only repository contents.

@arpitjain099

Copy link
Copy Markdown
Author

Hi @howieleung, 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.

@arpitjain099

Copy link
Copy Markdown
Author

Hey, Coming back around on this - any chance of a look when you have a moment? Happy to address feedback. Appreciated.

This is the one remaining workflow in this repo without an explicit
top-level permissions block. The job only checks out, runs pytest,
black, and azpysdk discovery against the eng/tools/azure-sdk-tools
package - no GitHub API surface. contents: read keeps it consistent
with the rest of .github/workflows in this repo.

Signed-off-by: Arpit Jain <arpitjain099@gmail.com>
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.

3 participants