mirror of
https://github.com/karpathy/nanochat.git
synced 2026-05-09 01:10:10 +00:00
fix(ci): grant id-token write so EC2 deploy can assume the OIDC role (#40)
aws-actions/configure-aws-credentials needs id-token: write to mint the OIDC JWT and assume AWS_ROLE_ARN. Without it the deploy-ec2 workflow fails at the credentials step. Add the permission at workflow scope. Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
1d2a76eec4
commit
9a45f0924d
4
.github/workflows/deploy-ec2.yml
vendored
4
.github/workflows/deploy-ec2.yml
vendored
|
|
@ -11,6 +11,10 @@ concurrency:
|
|||
group: deploy-ec2
|
||||
cancel-in-progress: false
|
||||
|
||||
permissions:
|
||||
id-token: write
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
if: github.event_name == 'workflow_dispatch' || github.event.workflow_run.conclusion == 'success'
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user