Skip to content

Commit 4177f5b

Browse files
authored
fix: do not request id-token if no publish (#515)
1 parent 21fa419 commit 4177f5b

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

lib/content/release-integration-yml.hbs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,13 @@ on:
1717
secrets:
1818
PUBLISH_TOKEN:
1919
required: true
20-
{{/if}}
20+
{{/if}}
2121

2222
permissions:
2323
contents: read
24+
{{#if publish}}
2425
id-token: write
26+
{{/if}}
2527

2628
jobs:
2729
publish:

tap-snapshots/test/apply/source-snapshots.js.test.cjs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -890,7 +890,6 @@ on:
890890
891891
permissions:
892892
contents: read
893-
id-token: write
894893
895894
jobs:
896895
publish:
@@ -2576,7 +2575,6 @@ on:
25762575
25772576
permissions:
25782577
contents: read
2579-
id-token: write
25802578
25812579
jobs:
25822580
publish:
@@ -4120,7 +4118,6 @@ on:
41204118
41214119
permissions:
41224120
contents: read
4123-
id-token: write
41244121
41254122
jobs:
41264123
publish:

0 commit comments

Comments
 (0)