Skip to content

Commit a00904f

Browse files
ci(external-integration): pin contents: read on the workflow (#4419)
Adds a top-level `permissions: contents: read` block to `external-integration.yml`, the only workflow in this repo currently relying on the default `GITHUB_TOKEN` scope. The workflow only runs on PRs labeled `int:azure-specs` (or via `workflow_dispatch`): it builds and packs the Azure TypeSpec packages, then runs the `tsp-integration` CLI against azure-rest-api-specs. None of those steps post comments, create releases, push refs, or call the GitHub API for writes, so the read-only scope is sufficient. Matches the top-level permissions pattern already used in `ci.yml` and the other hardened workflows here. Validated locally with `yaml.safe_load`. Signed-off-by: Arpit Jain <arpitjain099@gmail.com> Co-authored-by: Mark Cowlishaw <1054056+markcowl@users.noreply.github.com>
1 parent f97cb0c commit a00904f

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

.github/workflows/external-integration.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ concurrency:
88
group: ${{ github.workflow }}-${{ github.ref }}
99
cancel-in-progress: true
1010

11+
permissions:
12+
contents: read
13+
1114
jobs:
1215
azure-rest-api-specs:
1316
name: Azure REST API Specs

0 commit comments

Comments
 (0)