Skip to content

Commit 9d9cab4

Browse files
authored
bug(npm): Attempt3 to fix issue with Trusted Publishers when using reusable workflows (#6449)
* Add missing id-token: write * Update release-orchestrator.yml * Update release-production.yml * Fix permissions mismatch
1 parent 2ab7461 commit 9d9cab4

File tree

5 files changed

+8
-4
lines changed

5 files changed

+8
-4
lines changed

.github/workflows/publish-npm.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ on:
2828
default: '@stencil'
2929

3030
permissions:
31-
contents: read
31+
contents: write
3232
id-token: write
3333

3434
jobs:

.github/workflows/release-dev.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
value: ${{ jobs.get-dev-version.outputs.dev-version }}
99

1010
permissions:
11-
contents: read
11+
contents: write
1212
id-token: write
1313

1414
jobs:

.github/workflows/release-nightly.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
workflow_call:
55

66
permissions:
7-
contents: read
7+
contents: write
88
id-token: write
99

1010
jobs:

.github/workflows/release-orchestrator.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ on:
3434
- v3-maintenance
3535

3636
permissions:
37-
contents: read
37+
contents: write
3838
id-token: write
3939

4040
jobs:

.github/workflows/release-production.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ on:
1313
description: Which base branch should be targeted? (main or v3-maintenance)
1414
default: main
1515

16+
permissions:
17+
contents: write
18+
id-token: write
19+
1620
jobs:
1721
release-stencil-production-build:
1822
name: Publish Stencil (Production)

0 commit comments

Comments
 (0)