Skip to content

Commit 9873ff2

Browse files
rix0rrrmrgrain
andauthored
chore: add idToken permissions for OIDC authentication (#125)
The release steps don't work without these permissions. --- By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license Co-authored-by: Momo Kornher <[email protected]>
1 parent 130445d commit 9873ff2

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

.github/workflows/release.yml

+2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

projenrc/adc-publishing.ts

+1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ export class AdcPublishing extends Component {
3535
runsOn: ['ubuntu-latest'],
3636
permissions: {
3737
contents: JobPermission.WRITE,
38+
idToken: JobPermission.WRITE,
3839
},
3940
if: '${{ needs.release.outputs.latest_commit == github.sha }}',
4041
steps: [

projenrc/record-publishing-timestamp.ts

+1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ export class RecordPublishingTimestamp extends Component {
2525
runsOn: ['ubuntu-latest'],
2626
permissions: {
2727
contents: JobPermission.WRITE,
28+
idToken: JobPermission.WRITE,
2829
},
2930
if: '${{ needs.release.outputs.latest_commit == github.sha }}',
3031
steps: [

0 commit comments

Comments
 (0)