Skip to content

Commit 346b9e2

Browse files
committed
chore: add explicit permissions blocks to all workflows
1 parent 8d4de6f commit 346b9e2

5 files changed

Lines changed: 14 additions & 1 deletion

File tree

.github/workflows/autofix.yml

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

14+
permissions:
15+
contents: read
16+
1417
jobs:
1518
autofix:
1619
runs-on: ubuntu-latest

.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.ref }}
99
cancel-in-progress: true
1010

11+
permissions:
12+
contents: read
13+
1114
jobs:
1215
ci:
1316
name: Lint and Test with Node.js ${{ matrix.node }} on ${{ matrix.os }}

.github/workflows/pkg-pr-new.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
publish:
1316
runs-on: ubuntu-latest

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939

4040
- name: Create Release Pull Request or Publish to npm
4141
id: changesets
42-
uses: changesets/action@v1
42+
uses: changesets/action@a45c4d594aa4e2c509dc14a9f2b3b67ba3780d0d # v1.9.0
4343
with:
4444
commit: 'chore: release package(s)'
4545
title: 'chore: release package(s)'

.github/workflows/size-limit.yml

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

12+
permissions:
13+
contents: read
14+
pull-requests: write
15+
1216
jobs:
1317
size-limit:
1418
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)