Skip to content

Commit

Permalink
Merge pull request #308 from nearform/chore/migrate-to-oidc
Browse files Browse the repository at this point in the history
chore: Migrating from long-lived credentials to OIDC
  • Loading branch information
alcidesqueiroz committed Apr 21, 2023
2 parents 28da2d7 + 88808e9 commit a725371
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ on:
jobs:
build:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
strategy:
matrix:
node-version:
Expand All @@ -20,11 +23,12 @@ jobs:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm run lint
- env:
AWS_REGION: ${{ secrets.AWS_REGION }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
run: npm run test:ci
- name: configure aws credentials
uses: aws-actions/configure-aws-credentials@v2
with:
role-to-assume: ${{ vars.AWS_ROLE_TO_ASSUME }}
aws-region: ${{ vars.AWS_REGION }}
- run: npm run test:ci
automerge:
needs: build
runs-on: ubuntu-latest
Expand Down

0 comments on commit a725371

Please sign in to comment.