Skip to content

Commit 7bfbe2a

Browse files
committed
ci: pin GITHUB_TOKEN to contents:read in all workflows
Add top-level `permissions: contents: read` to ci.yml, build-binaries.yml, smoke-test.yml, and sign-macos.yml. Matches the defense-in-depth already applied to release.yml and the job-level pin on enforce-changeset.yml. Flagged by CodeQL (actions/missing-workflow-permissions).
1 parent 8ac823f commit 7bfbe2a

4 files changed

Lines changed: 12 additions & 0 deletions

File tree

.github/workflows/build-binaries.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ on:
1414
type: string
1515
description: "Prefix for artifact names (e.g. 'clerk', 'clerk-canary', 'clerk-snapshot')"
1616

17+
permissions:
18+
contents: read
19+
1720
jobs:
1821
build:
1922
runs-on: blacksmith-2vcpu-ubuntu-2404

.github/workflows/ci.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.event.pull_request.number || github.ref }}
99
cancel-in-progress: true
1010

11+
permissions:
12+
contents: read
13+
1114
jobs:
1215
build:
1316
name: Build

.github/workflows/sign-macos.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ on:
1919
APPLE_API_ISSUER_ID:
2020
required: true
2121

22+
permissions:
23+
contents: read
24+
2225
jobs:
2326
sign:
2427
strategy:

.github/workflows/smoke-test.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ on:
1717
canary (darwin-arm64 + linux-x64 + linux-x64-musl), or
1818
snapshot (linux-x64 only).
1919
20+
permissions:
21+
contents: read
22+
2023
jobs:
2124
resolve-matrix:
2225
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)