Commit a00904f
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
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
11 | 14 | | |
12 | 15 | | |
13 | 16 | | |
| |||
0 commit comments