From 5f2ba85f919296dcf52e358476cd1dc3e2b72a38 Mon Sep 17 00:00:00 2001 From: Kaizen Conroy Date: Wed, 29 Nov 2023 13:47:05 -0500 Subject: [PATCH] feat: update aws-actions/configure-aws-credentials from v1-node16 to v4 --- src/private/aws-credentials.ts | 2 +- test/__snapshots__/github.test.ts.snap | 48 +++++++++---------- test/__snapshots__/stage-options.test.ts.snap | 40 ++++++++-------- 3 files changed, 45 insertions(+), 45 deletions(-) diff --git a/src/private/aws-credentials.ts b/src/private/aws-credentials.ts index 787e9ed6..9e42c76f 100644 --- a/src/private/aws-credentials.ts +++ b/src/private/aws-credentials.ts @@ -88,7 +88,7 @@ export function awsCredentialStep(stepName: string, props: AwsCredentialsStepPro return { name: stepName, - uses: 'aws-actions/configure-aws-credentials@v1-node16', + uses: 'aws-actions/configure-aws-credentials@v4', with: params, }; } diff --git a/test/__snapshots__/github.test.ts.snap b/test/__snapshots__/github.test.ts.snap index b4993a7c..3e54831e 100644 --- a/test/__snapshots__/github.test.ts.snap +++ b/test/__snapshots__/github.test.ts.snap @@ -46,7 +46,7 @@ jobs: - name: Install run: npm install --no-save cdk-assets - name: Authenticate Via GitHub Secrets - uses: aws-actions/configure-aws-credentials@v1-node16 + uses: aws-actions/configure-aws-credentials@v4 with: aws-region: us-west-2 role-duration-seconds: 1800 @@ -75,7 +75,7 @@ jobs: - name: Install run: npm install --no-save cdk-assets - name: Authenticate Via GitHub Secrets - uses: aws-actions/configure-aws-credentials@v1-node16 + uses: aws-actions/configure-aws-credentials@v4 with: aws-region: us-west-2 role-duration-seconds: 1800 @@ -101,7 +101,7 @@ jobs: - name: Install run: npm install --no-save cdk-assets - name: Authenticate Via GitHub Secrets - uses: aws-actions/configure-aws-credentials@v1-node16 + uses: aws-actions/configure-aws-credentials@v4 with: aws-region: us-west-2 role-duration-seconds: 1800 @@ -127,7 +127,7 @@ jobs: - name: Install run: npm install --no-save cdk-assets - name: Authenticate Via GitHub Secrets - uses: aws-actions/configure-aws-credentials@v1-node16 + uses: aws-actions/configure-aws-credentials@v4 with: aws-region: us-west-2 role-duration-seconds: 1800 @@ -153,7 +153,7 @@ jobs: - name: Install run: npm install --no-save cdk-assets - name: Authenticate Via GitHub Secrets - uses: aws-actions/configure-aws-credentials@v1-node16 + uses: aws-actions/configure-aws-credentials@v4 with: aws-region: us-west-2 role-duration-seconds: 1800 @@ -179,7 +179,7 @@ jobs: - name: Install run: npm install --no-save cdk-assets - name: Authenticate Via GitHub Secrets - uses: aws-actions/configure-aws-credentials@v1-node16 + uses: aws-actions/configure-aws-credentials@v4 with: aws-region: us-west-2 role-duration-seconds: 1800 @@ -205,7 +205,7 @@ jobs: - name: Install run: npm install --no-save cdk-assets - name: Authenticate Via GitHub Secrets - uses: aws-actions/configure-aws-credentials@v1-node16 + uses: aws-actions/configure-aws-credentials@v4 with: aws-region: us-west-2 role-duration-seconds: 1800 @@ -238,7 +238,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Authenticate Via GitHub Secrets - uses: aws-actions/configure-aws-credentials@v1-node16 + uses: aws-actions/configure-aws-credentials@v4 with: aws-region: us-east-1 role-duration-seconds: 1800 @@ -270,7 +270,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Authenticate Via GitHub Secrets - uses: aws-actions/configure-aws-credentials@v1-node16 + uses: aws-actions/configure-aws-credentials@v4 with: aws-region: us-east-1 role-duration-seconds: 1800 @@ -319,7 +319,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Authenticate Via GitHub Secrets - uses: aws-actions/configure-aws-credentials@v1-node16 + uses: aws-actions/configure-aws-credentials@v4 with: aws-region: eu-west-2 role-duration-seconds: 1800 @@ -354,7 +354,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Authenticate Via GitHub Secrets - uses: aws-actions/configure-aws-credentials@v1-node16 + uses: aws-actions/configure-aws-credentials@v4 with: aws-region: eu-west-2 role-duration-seconds: 1800 @@ -458,7 +458,7 @@ jobs: - name: Install run: npm install --no-save cdk-assets - name: Authenticate Via GitHub Secrets - uses: aws-actions/configure-aws-credentials@v1-node16 + uses: aws-actions/configure-aws-credentials@v4 with: aws-region: us-west-2 role-duration-seconds: 1800 @@ -488,7 +488,7 @@ jobs: - name: Install run: npm install --no-save cdk-assets - name: Authenticate Via GitHub Secrets - uses: aws-actions/configure-aws-credentials@v1-node16 + uses: aws-actions/configure-aws-credentials@v4 with: aws-region: us-west-2 role-duration-seconds: 1800 @@ -511,7 +511,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Authenticate Via GitHub Secrets - uses: aws-actions/configure-aws-credentials@v1-node16 + uses: aws-actions/configure-aws-credentials@v4 with: aws-region: us-east-1 role-duration-seconds: 1800 @@ -581,7 +581,7 @@ jobs: - name: Install run: npm install --no-save cdk-assets - name: Authenticate Via OIDC Role - uses: aws-actions/configure-aws-credentials@v1-node16 + uses: aws-actions/configure-aws-credentials@v4 with: aws-region: us-west-2 role-duration-seconds: 1800 @@ -609,7 +609,7 @@ jobs: - name: Install run: npm install --no-save cdk-assets - name: Authenticate Via OIDC Role - uses: aws-actions/configure-aws-credentials@v1-node16 + uses: aws-actions/configure-aws-credentials@v4 with: aws-region: us-west-2 role-duration-seconds: 1800 @@ -630,14 +630,14 @@ jobs: runs-on: ubuntu-latest steps: - name: Authenticate Via OIDC Role - uses: aws-actions/configure-aws-credentials@v1-node16 + uses: aws-actions/configure-aws-credentials@v4 with: aws-region: us-east-1 role-duration-seconds: 1800 role-skip-session-tagging: true role-to-assume: arn:aws:iam::000000000000:role/GitHubActionRole - name: Assume CDK Deploy Role - uses: aws-actions/configure-aws-credentials@v1-node16 + uses: aws-actions/configure-aws-credentials@v4 with: aws-region: us-east-1 role-duration-seconds: 1800 @@ -740,7 +740,7 @@ jobs: - name: Install run: npm install --no-save cdk-assets - name: Authenticate Via GitHub Secrets - uses: aws-actions/configure-aws-credentials@v1-node16 + uses: aws-actions/configure-aws-credentials@v4 with: aws-region: ap-southeast-2 role-duration-seconds: 1800 @@ -769,7 +769,7 @@ jobs: - name: Install run: npm install --no-save cdk-assets - name: Authenticate Via GitHub Secrets - uses: aws-actions/configure-aws-credentials@v1-node16 + uses: aws-actions/configure-aws-credentials@v4 with: aws-region: ap-southeast-2 role-duration-seconds: 1800 @@ -791,7 +791,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Authenticate Via GitHub Secrets - uses: aws-actions/configure-aws-credentials@v1-node16 + uses: aws-actions/configure-aws-credentials@v4 with: aws-region: us-east-1 role-duration-seconds: 1800 @@ -896,7 +896,7 @@ jobs: - name: Install run: npm install --no-save cdk-assets - name: Authenticate Via GitHub Secrets - uses: aws-actions/configure-aws-credentials@v1-node16 + uses: aws-actions/configure-aws-credentials@v4 with: aws-region: us-west-2 role-duration-seconds: 1800 @@ -925,7 +925,7 @@ jobs: - name: Install run: npm install --no-save cdk-assets - name: Authenticate Via GitHub Secrets - uses: aws-actions/configure-aws-credentials@v1-node16 + uses: aws-actions/configure-aws-credentials@v4 with: aws-region: us-west-2 role-duration-seconds: 1800 @@ -947,7 +947,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Authenticate Via GitHub Secrets - uses: aws-actions/configure-aws-credentials@v1-node16 + uses: aws-actions/configure-aws-credentials@v4 with: aws-region: us-east-1 role-duration-seconds: 1800 diff --git a/test/__snapshots__/stage-options.test.ts.snap b/test/__snapshots__/stage-options.test.ts.snap index 2fc440fd..1287af01 100644 --- a/test/__snapshots__/stage-options.test.ts.snap +++ b/test/__snapshots__/stage-options.test.ts.snap @@ -52,7 +52,7 @@ jobs: - name: Install run: npm install --no-save cdk-assets - name: Authenticate Via GitHub Secrets - uses: aws-actions/configure-aws-credentials@v1-node16 + uses: aws-actions/configure-aws-credentials@v4 with: aws-region: us-west-2 role-duration-seconds: 1800 @@ -90,7 +90,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Authenticate Via GitHub Secrets - uses: aws-actions/configure-aws-credentials@v1-node16 + uses: aws-actions/configure-aws-credentials@v4 with: aws-region: us-east-1 role-duration-seconds: 1800 @@ -178,7 +178,7 @@ jobs: - name: Install run: npm install --no-save cdk-assets - name: Authenticate Via GitHub Secrets - uses: aws-actions/configure-aws-credentials@v1-node16 + uses: aws-actions/configure-aws-credentials@v4 with: aws-region: us-west-2 role-duration-seconds: 1800 @@ -199,7 +199,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Authenticate Via GitHub Secrets - uses: aws-actions/configure-aws-credentials@v1-node16 + uses: aws-actions/configure-aws-credentials@v4 with: aws-region: us-east-1 role-duration-seconds: 1800 @@ -270,7 +270,7 @@ jobs: - name: Install run: npm install --no-save cdk-assets - name: Authenticate Via GitHub Secrets - uses: aws-actions/configure-aws-credentials@v1-node16 + uses: aws-actions/configure-aws-credentials@v4 with: aws-region: us-west-2 role-duration-seconds: 1800 @@ -291,7 +291,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Authenticate Via GitHub Secrets - uses: aws-actions/configure-aws-credentials@v1-node16 + uses: aws-actions/configure-aws-credentials@v4 with: aws-region: us-east-1 role-duration-seconds: 1800 @@ -362,7 +362,7 @@ jobs: - name: Install run: npm install --no-save cdk-assets - name: Authenticate Via GitHub Secrets - uses: aws-actions/configure-aws-credentials@v1-node16 + uses: aws-actions/configure-aws-credentials@v4 with: aws-region: us-west-2 role-duration-seconds: 1800 @@ -384,7 +384,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Authenticate Via GitHub Secrets - uses: aws-actions/configure-aws-credentials@v1-node16 + uses: aws-actions/configure-aws-credentials@v4 with: aws-region: us-east-1 role-duration-seconds: 1800 @@ -414,7 +414,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Authenticate Via GitHub Secrets - uses: aws-actions/configure-aws-credentials@v1-node16 + uses: aws-actions/configure-aws-credentials@v4 with: aws-region: us-west-2 role-duration-seconds: 1800 @@ -488,7 +488,7 @@ jobs: - name: Install run: npm install --no-save cdk-assets - name: Authenticate Via GitHub Secrets - uses: aws-actions/configure-aws-credentials@v1-node16 + uses: aws-actions/configure-aws-credentials@v4 with: aws-region: us-west-2 role-duration-seconds: 1800 @@ -527,7 +527,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Authenticate Via GitHub Secrets - uses: aws-actions/configure-aws-credentials@v1-node16 + uses: aws-actions/configure-aws-credentials@v4 with: aws-region: us-east-1 role-duration-seconds: 1800 @@ -557,7 +557,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Authenticate Via GitHub Secrets - uses: aws-actions/configure-aws-credentials@v1-node16 + uses: aws-actions/configure-aws-credentials@v4 with: aws-region: us-east-1 role-duration-seconds: 1800 @@ -647,7 +647,7 @@ jobs: - name: Install run: npm install --no-save cdk-assets - name: Authenticate Via GitHub Secrets - uses: aws-actions/configure-aws-credentials@v1-node16 + uses: aws-actions/configure-aws-credentials@v4 with: aws-region: us-west-2 role-duration-seconds: 1800 @@ -669,7 +669,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Authenticate Via GitHub Secrets - uses: aws-actions/configure-aws-credentials@v1-node16 + uses: aws-actions/configure-aws-credentials@v4 with: aws-region: us-east-1 role-duration-seconds: 1800 @@ -739,7 +739,7 @@ jobs: - name: Install run: npm install --no-save cdk-assets - name: Authenticate Via GitHub Secrets - uses: aws-actions/configure-aws-credentials@v1-node16 + uses: aws-actions/configure-aws-credentials@v4 with: aws-region: us-west-2 role-duration-seconds: 1800 @@ -761,7 +761,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Authenticate Via GitHub Secrets - uses: aws-actions/configure-aws-credentials@v1-node16 + uses: aws-actions/configure-aws-credentials@v4 with: aws-region: us-east-1 role-duration-seconds: 1800 @@ -790,7 +790,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Authenticate Via GitHub Secrets - uses: aws-actions/configure-aws-credentials@v1-node16 + uses: aws-actions/configure-aws-credentials@v4 with: aws-region: us-east-1 role-duration-seconds: 1800 @@ -860,7 +860,7 @@ jobs: - name: Install run: npm install --no-save cdk-assets - name: Authenticate Via GitHub Secrets - uses: aws-actions/configure-aws-credentials@v1-node16 + uses: aws-actions/configure-aws-credentials@v4 with: aws-region: us-west-2 role-duration-seconds: 1800 @@ -882,7 +882,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Authenticate Via GitHub Secrets - uses: aws-actions/configure-aws-credentials@v1-node16 + uses: aws-actions/configure-aws-credentials@v4 with: aws-region: us-east-1 role-duration-seconds: 1800 @@ -912,7 +912,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Authenticate Via GitHub Secrets - uses: aws-actions/configure-aws-credentials@v1-node16 + uses: aws-actions/configure-aws-credentials@v4 with: aws-region: us-east-1 role-duration-seconds: 1800