Skip to content

Allow OIDC token in Actions#25

Merged
round-corgi merged 1 commit intocirclefin:masterfrom
round-corgi:fix-publish-build
Oct 13, 2022
Merged

Allow OIDC token in Actions#25
round-corgi merged 1 commit intocirclefin:masterfrom
round-corgi:fix-publish-build

Conversation

@round-corgi
Copy link
Contributor

Add permissions allowing the pipeline to use OIDC token.

himanshu8garg
himanshu8garg previously approved these changes Oct 13, 2022
igaskin
igaskin previously approved these changes Oct 13, 2022
@round-corgi round-corgi merged commit ffcaf51 into circlefin:master Oct 13, 2022
@round-corgi round-corgi deleted the fix-publish-build branch October 13, 2022 19:55
nexx88 pushed a commit that referenced this pull request Mar 20, 2026
## Summary
Restore `id-token: write` in the reusable npm publish workflow so AWS
OIDC auth works during publish

### Why
- the publish pipeline is failing in `Configure AWS Credentials` before
`npm publish`
- `aws-actions/configure-aws-credentials` is using `role-to-assume`,
which requires a GitHub OIDC token
- the workflow only grants `contents: read`, so the job cannot mint that
token

## Details

### Regression Context
- `id-token: write` was originally added in
[`ffcaf51`](ffcaf51)
(`fix: allow OIDC token in publish pipeline (#25)`)
- it was removed in
[`40ee83f`](40ee83f)
(`chore(stepsecurity): update workflows to use custom hosted runners
with built-in StepSecurity (#133)`)
- that regression stayed hidden until
[`27f4efe`](27f4efe)
(`ci: fix release-please wiring (#140)`) fixed release gating and caused
`npm-publish` to run again

## Validation
- reviewed failed run
[`23300901189`](https://github.com/circlefin/circle-nodejs-sdk/actions/runs/23300901189)
and failing job
[`67761702334`](https://github.com/circlefin/circle-nodejs-sdk/actions/runs/23300901189/job/67761702334)
- confirmed the job fails in `Configure AWS Credentials` with the log:
`Did you mean to set the id-token permission?`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants