Skip to content

Commit

Permalink
Change CI to use OIDC (#1740)
Browse files Browse the repository at this point in the history
* update aws

* fix

* fix

* test

* fix

* for quicker test

* test

* test

* test

* fix

* fix

* test

* test

* test

* test

* test

* test

* test

* test

* test

* fix

* update role

Co-authored-by: Weisu Yin <[email protected]>
  • Loading branch information
yinweisu and yinweisu authored Mar 30, 2022
1 parent 0baa50a commit 896df4e
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions .github/workflows/build_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ on:
workflows: ["Unit Test"]
types:
- completed
permissions:
id-token: write
contents: read
statuses: write
jobs:
unittest-check:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -48,8 +52,8 @@ jobs:
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.GLUONCV_DEV_ACCESS_ID }}
aws-secret-access-key: ${{ secrets.GLUONCV_DEV_SECRET_ACCESS_KEY }}
role-to-assume: ${{ secrets.GLUONCV_CI_ROLE }}
role-duration-seconds: 7200
aws-region: us-east-1
- name: Install dependencies
run: |
Expand Down Expand Up @@ -118,8 +122,8 @@ jobs:
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.GLUONCV_DEV_ACCESS_ID }}
aws-secret-access-key: ${{ secrets.GLUONCV_DEV_SECRET_ACCESS_KEY }}
role-to-assume: ${{ secrets.GLUONCV_CI_ROLE }}
role-duration-seconds: 7200
aws-region: us-east-1
- name: Install dependencies
run: |
Expand Down Expand Up @@ -188,8 +192,8 @@ jobs:
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.GLUONCV_DEV_ACCESS_ID }}
aws-secret-access-key: ${{ secrets.GLUONCV_DEV_SECRET_ACCESS_KEY }}
role-to-assume: ${{ secrets.GLUONCV_CI_ROLE }}
role-duration-seconds: 7200
aws-region: us-east-1
- name: Install dependencies
run: |
Expand Down Expand Up @@ -262,8 +266,8 @@ jobs:
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.GLUONCV_DEV_ACCESS_ID }}
aws-secret-access-key: ${{ secrets.GLUONCV_DEV_SECRET_ACCESS_KEY }}
role-to-assume: ${{ secrets.GLUONCV_CI_ROLE }}
role-duration-seconds: 7200
aws-region: us-east-1
- name: Install dependencies
run: |
Expand Down

0 comments on commit 896df4e

Please sign in to comment.