Skip to content

Commit

Permalink
id token
Browse files Browse the repository at this point in the history
  • Loading branch information
waahm7 committed Sep 19, 2024
1 parent d89746c commit dce2f06
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ env:
LINUX_BASE_IMAGE: ubuntu-18-x64
RUN: ${{ github.run_id }}-${{ github.run_number }}
CRT_CI_ROLE: arn:aws:iam::123124136734:role/CRT_CI_Role
AWS_DEFAULT_REGION: us-east-1
AWS_REGION: us-east-1

jobs:
Expand Down Expand Up @@ -116,6 +115,8 @@ jobs:
- fedora-34-x64
- opensuse-leap
- rhel8-x64
permissions:
id-token: write # This is required for requesting the JWT
steps:
# We can't use the `uses: docker://image` version yet, GitHub lacks authentication for actions -> packages
- name: Build ${{ env.PACKAGE_NAME }}
Expand Down Expand Up @@ -145,7 +146,7 @@ jobs:
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: ${{ env.CRT_CI_ROLE }}
aws-region: ${{ env.AWS_DEFAULT_REGION }}
aws-region: ${{ env.AWS_REGION }}
- name: Build ${{ env.PACKAGE_NAME }}
run: |
aws s3 cp s3://aws-crt-test-stuff/ci/${{ env.BUILDER_VERSION }}/linux-container-ci.sh ./linux-container-ci.sh && chmod a+x ./linux-container-ci.sh
Expand Down

0 comments on commit dce2f06

Please sign in to comment.