Skip to content

Commit

Permalink
add id-token permission
Browse files Browse the repository at this point in the history
  • Loading branch information
trxcllnt committed Aug 22, 2023
1 parent 85e97c0 commit 5ee7d84
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/build-in-devcontainer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ jobs:
pkgr: ["conda"]
# pkgr: ["conda", "pip"]
runs-on: "linux-${{ matrix.arch }}-${{ inputs.node_type }}"
permissions:
id-token: write # This is required for configure-aws-credentials
steps:
- uses: actions/checkout@v3
with:
Expand All @@ -43,14 +45,13 @@ jobs:
aws-region: ${{ vars.AWS_REGION }}
role-duration-seconds: 43200 # 12h
- if: ${{ env.HAS_DEVCONTAINER == 'true' }}
name: Run make ci-build in dev container
name: Run build in devcontainer
uses: devcontainers/[email protected]
with:
push: never
runCmd: "${{ inputs.build_command }}"
subFolder: ".devcontainer/cuda${{ matrix.cuda }}-${{ matrix.pkgr }}"
env: |
"AWS_REGION=${{ vars.AWS_REGION }}"
"SCCACHE_REGION=${{ vars.AWS_REGION }}"
"AWS_ACCESS_KEY_ID=${{ env.AWS_ACCESS_KEY_ID }}"
"AWS_SESSION_TOKEN=${{ env.AWS_SESSION_TOKEN }}"
Expand Down

0 comments on commit 5ee7d84

Please sign in to comment.