Skip to content

Commit 29717d5

Browse files
committed
add read permissions to each job
1 parent ebfea75 commit 29717d5

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

.github/workflows/publish_design_tokens.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,13 @@ on:
99
release:
1010
types: [published]
1111

12-
permissions:
13-
contents: read
14-
1512
jobs:
1613
publish-design-tokens-npm-next:
1714
name: Publish @bcgov/design-tokens@next to npm
1815
# Publish a `next` version to npm on PR merge to main branch.
1916
if: ${{ github.event.pull_request.merged == true && github.repository == 'bcgov/design-system' }}
2017
permissions:
18+
contents: read
2119
id-token: write # Required for OIDC
2220
runs-on: ubuntu-latest
2321

@@ -79,6 +77,7 @@ jobs:
7977
# Publish a `next` version to GitHub Packages on PR merge to main branch.
8078
if: ${{ github.event.pull_request.merged == true && github.repository == 'bcgov/design-system' }}
8179
permissions:
80+
contents: read
8281
packages: write
8382
runs-on: ubuntu-latest
8483

@@ -141,6 +140,7 @@ jobs:
141140
# @bcgov/design-tokens@v1.2.3
142141
if: ${{ github.event_name == 'release' && contains(github.event.release.tag_name, 'bcgov/design-tokens') }}
143142
permissions:
143+
contents: read
144144
id-token: write # Required for OIDC
145145
runs-on: ubuntu-latest
146146

@@ -181,6 +181,7 @@ jobs:
181181
# @bcgov/design-tokens@v1.2.3
182182
if: ${{ github.event_name == 'release' && contains(github.event.release.tag_name, 'bcgov/design-tokens') }}
183183
permissions:
184+
contents: read
184185
packages: write
185186
runs-on: ubuntu-latest
186187

0 commit comments

Comments
 (0)