-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Activate AWS Curvenote GitHub OIDC credentials
- Loading branch information
Showing
1 changed file
with
15 additions
and
0 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 |
---|---|---|
|
@@ -228,6 +228,13 @@ jobs: | |
- federation_member: curvenote | ||
helm_version: "" | ||
experimental: false | ||
aws_deployment_role: arn:aws:iam::166088433508:role/binderhub-github-oidc-mybinderorgdeploy | ||
aws_region: us-east-2 | ||
|
||
# These permissions are needed to interact with GitHub's OIDC Token endpoint. | ||
permissions: | ||
id-token: write | ||
contents: read | ||
|
||
steps: | ||
- name: "Stage 0: Update env vars based on job matrix arguments" | ||
|
@@ -286,6 +293,14 @@ jobs: | |
with: | ||
version: ${{ env.GCLOUD_SDK_VERION }} | ||
|
||
- name: "Stage 1: Configure AWS credentials" | ||
if: matrix.federation_member == 'curvenote' | ||
uses: aws-actions/configure-aws-credentials@v4 | ||
with: | ||
role-to-assume: ${{ matrix.aws_deployment_role }} | ||
aws-region: ${{ matrix.aws_region }} | ||
role-session-name: mybinder-github-cd | ||
|
||
- name: "Stage 1: Install kubectl ${{ env.KUBECTL_VERSION }}" | ||
uses: azure/[email protected] | ||
with: | ||
|