Skip to content

ci(tsp-client-tests): pin contents: read#15613

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

ci(tsp-client-tests): pin contents: read#15613
arpitjain099 wants to merge 1 commit into
Azure:mainfrom
arpitjain099:ci/add-permissions

Conversation

@arpitjain099
Copy link
Copy Markdown

Round out workflow-level least-privilege in this repo. tsp-client-tests.yml was the last workflow under .github/workflows/ without a top-level permissions: block - all 11 siblings already declare one (e.g. eng-common-tsp-client-test.yml, event.yml, scheduled-event-processor.yml).

The job only does actions/checkout, actions/setup-node, and npm ci / build / test / format:check against tools/tsp-client. No GitHub API surface, so contents: read is the right scope.

YAML re-parsed locally. No behavior change.

Last workflow in .github/workflows here without a top-level permissions
block. tsp-client tests only check out, npm ci/build/test/format - no
GitHub API surface. Matches eng-common-tsp-client-test.yml and the
other already-hardened sibling workflows.

Signed-off-by: Arpit Jain <arpitjain099@gmail.com>
Copilot AI review requested due to automatic review settings May 13, 2026 09:47
@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

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

Copy link
Copy Markdown
Contributor

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

This PR completes workflow-level least-privilege for the repo by adding an explicit top-level permissions: block to the remaining workflow that lacked one, ensuring the default GITHUB_TOKEN scope is limited to what the workflow actually needs.

Changes:

  • Add workflow-level permissions: contents: read to .github/workflows/tsp-client-tests.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