-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use OIDC to assume CI AWS role (#627)
- Loading branch information
Showing
3 changed files
with
75 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,11 @@ on: | |
jobs: | ||
test: | ||
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} | ||
permissions: | ||
# Required for interacting with GitHub's OIDC Token endpoint: | ||
# https://docs.github.com/en/actions/deployment/security-hardening-your-deployments/configuring-openid-connect-in-amazon-web-services#adding-permissions-settings | ||
id-token: write | ||
contents: read # Required for `actions/checkout` | ||
runs-on: ${{ matrix.os }} | ||
timeout-minutes: 30 | ||
continue-on-error: ${{ matrix.version == 'nightly' }} | ||
|
@@ -36,6 +41,11 @@ jobs: | |
MINIO_REGION_NAME: aregion | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Assume AWS role | ||
uses: aws-actions/configure-aws-credentials@v2 | ||
with: | ||
role-to-assume: arn:aws:iam::${{ secrets.AWS_ACCOUNT_ID }}:role/AWS.jl | ||
aws-region: us-east-1 | ||
- name: MinIO server setup | ||
run: | | ||
case "$RUNNER_OS" in | ||
|
@@ -73,9 +83,6 @@ jobs: | |
git config --global user.name Tester | ||
git config --global user.email [email protected] | ||
- uses: julia-actions/julia-runtest@latest | ||
env: | ||
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
slack: | ||
name: Notify Slack Failure | ||
needs: test | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters