Skip to content

Commit 3b16f70

Browse files
Refactor permissions in publish.yml (#49)
Moved permissions to the workflow level for clarity.
1 parent 076b09d commit 3b16f70

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.github/workflows/publish.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,17 @@ on:
77

88
concurrency: ${{ github.workflow }}-${{ github.ref }}
99

10+
permissions:
11+
id-token: write # OIDC for npm Trusted Publishing
12+
contents: write
13+
pull-requests: write
14+
1015
jobs:
1116
release:
1217
name: Release
1318
runs-on: ubuntu-latest
1419
outputs:
1520
published: ${{ steps.changesets.outputs.published }}
16-
permissions:
17-
id-token: write # required for provenance https://docs.npmjs.com/generating-provenance-statements#publishing-packages-with-provenance-via-github-actions
18-
contents: write
19-
pull-requests: write
2021
steps:
2122
- uses: actions/checkout@v4
2223

@@ -37,4 +38,4 @@ jobs:
3738
uses: workleap/wl-reusable-workflows/.github/workflows/linearb-deployment.yml@main
3839
with:
3940
environment: 'release'
40-
secrets: inherit
41+
secrets: inherit

0 commit comments

Comments
 (0)