Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change CI to use OIDC #1740

Merged
merged 22 commits into from
Mar 30, 2022
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