Skip to content

Commit

Permalink
fix: Bump github action versions (#73)
Browse files Browse the repository at this point in the history
* fix: Bump github action versions

* fix: Fix failing tests
  • Loading branch information
aphilippartd authored Oct 9, 2024
1 parent 212e2b4 commit 25ce6ce
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 30 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ jobs:
use-installer: true

- name: Assume the testing pipeline user role
uses: aws-actions/configure-aws-credentials@v1-node16
uses: aws-actions/configure-aws-credentials@v4
with:
{% if cookiecutter.permissions_provider == "AWS IAM" -%}
aws-access-key-id: {{ '${{ env.PIPELINE_USER_ACCESS_KEY_ID }}' }}
Expand Down Expand Up @@ -105,7 +105,7 @@ jobs:
- run: sam build --template ${SAM_TEMPLATE} --use-container

- name: Assume the testing pipeline user role
uses: aws-actions/configure-aws-credentials@v1-node16
uses: aws-actions/configure-aws-credentials@v4
with:
{% if cookiecutter.permissions_provider == "AWS IAM" -%}
aws-access-key-id: {{ '${{ env.PIPELINE_USER_ACCESS_KEY_ID }}' }}
Expand Down Expand Up @@ -144,7 +144,7 @@ jobs:
run: sam build --template ${SAM_TEMPLATE} --use-container

- name: Assume the testing pipeline user role
uses: aws-actions/configure-aws-credentials@v1-node16
uses: aws-actions/configure-aws-credentials@v4
with:
{% if cookiecutter.permissions_provider == "AWS IAM" -%}
aws-access-key-id: {{ '${{ env.PIPELINE_USER_ACCESS_KEY_ID }}' }}
Expand All @@ -166,13 +166,13 @@ jobs:
--region ${TESTING_REGION} \
--output-template-file packaged-testing.yaml
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: packaged-testing.yaml
path: packaged-testing.yaml

- name: Assume the prod pipeline user role
uses: aws-actions/configure-aws-credentials@v1-node16
uses: aws-actions/configure-aws-credentials@v4
with:
{% if cookiecutter.permissions_provider == "AWS IAM" -%}
aws-access-key-id: {{ '${{ env.PIPELINE_USER_ACCESS_KEY_ID }}' }}
Expand All @@ -194,7 +194,7 @@ jobs:
--region ${PROD_REGION} \
--output-template-file packaged-prod.yaml
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: packaged-prod.yaml
path: packaged-prod.yaml
Expand All @@ -208,12 +208,12 @@ jobs:
- uses: aws-actions/setup-sam@v2
with:
use-installer: true
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: packaged-testing.yaml

- name: Assume the testing pipeline user role
uses: aws-actions/configure-aws-credentials@v1-node16
uses: aws-actions/configure-aws-credentials@v4
with:
{% if cookiecutter.permissions_provider == "AWS IAM" -%}
aws-access-key-id: {{ '${{ env.PIPELINE_USER_ACCESS_KEY_ID }}' }}
Expand Down Expand Up @@ -259,12 +259,12 @@ jobs:
- uses: aws-actions/setup-sam@v2
with:
use-installer: true
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: packaged-prod.yaml

- name: Assume the prod pipeline user role
uses: aws-actions/configure-aws-credentials@v1-node16
uses: aws-actions/configure-aws-credentials@v4
with:
{% if cookiecutter.permissions_provider == "AWS IAM" -%}
aws-access-key-id: {{ '${{ env.PIPELINE_USER_ACCESS_KEY_ID }}' }}
Expand Down
20 changes: 10 additions & 10 deletions tests/testfile_github/expected_iam.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
use-installer: true

- name: Assume the testing pipeline user role
uses: aws-actions/configure-aws-credentials@v1-node16
uses: aws-actions/configure-aws-credentials@v4
with:
aws-access-key-id: ${{ env.PIPELINE_USER_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ env.PIPELINE_USER_SECRET_ACCESS_KEY }}
Expand Down Expand Up @@ -80,7 +80,7 @@ jobs:
- run: sam build --template ${SAM_TEMPLATE} --use-container

- name: Assume the testing pipeline user role
uses: aws-actions/configure-aws-credentials@v1-node16
uses: aws-actions/configure-aws-credentials@v4
with:
aws-access-key-id: ${{ env.PIPELINE_USER_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ env.PIPELINE_USER_SECRET_ACCESS_KEY }}
Expand Down Expand Up @@ -115,7 +115,7 @@ jobs:
run: sam build --template ${SAM_TEMPLATE} --use-container

- name: Assume the testing pipeline user role
uses: aws-actions/configure-aws-credentials@v1-node16
uses: aws-actions/configure-aws-credentials@v4
with:
aws-access-key-id: ${{ env.PIPELINE_USER_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ env.PIPELINE_USER_SECRET_ACCESS_KEY }}
Expand All @@ -133,13 +133,13 @@ jobs:
--region ${TESTING_REGION} \
--output-template-file packaged-testing.yaml
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: packaged-testing.yaml
path: packaged-testing.yaml

- name: Assume the prod pipeline user role
uses: aws-actions/configure-aws-credentials@v1-node16
uses: aws-actions/configure-aws-credentials@v4
with:
aws-access-key-id: ${{ env.PIPELINE_USER_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ env.PIPELINE_USER_SECRET_ACCESS_KEY }}
Expand All @@ -157,7 +157,7 @@ jobs:
--region ${PROD_REGION} \
--output-template-file packaged-prod.yaml
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: packaged-prod.yaml
path: packaged-prod.yaml
Expand All @@ -171,12 +171,12 @@ jobs:
- uses: aws-actions/setup-sam@v2
with:
use-installer: true
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: packaged-testing.yaml

- name: Assume the testing pipeline user role
uses: aws-actions/configure-aws-credentials@v1-node16
uses: aws-actions/configure-aws-credentials@v4
with:
aws-access-key-id: ${{ env.PIPELINE_USER_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ env.PIPELINE_USER_SECRET_ACCESS_KEY }}
Expand Down Expand Up @@ -218,12 +218,12 @@ jobs:
- uses: aws-actions/setup-sam@v2
with:
use-installer: true
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: packaged-prod.yaml

- name: Assume the prod pipeline user role
uses: aws-actions/configure-aws-credentials@v1-node16
uses: aws-actions/configure-aws-credentials@v4
with:
aws-access-key-id: ${{ env.PIPELINE_USER_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ env.PIPELINE_USER_SECRET_ACCESS_KEY }}
Expand Down
20 changes: 10 additions & 10 deletions tests/testfile_github/expected_oidc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
use-installer: true

- name: Assume the testing pipeline user role
uses: aws-actions/configure-aws-credentials@v1-node16
uses: aws-actions/configure-aws-credentials@v4
with:
aws-region: ${{ env.TESTING_REGION }}
role-to-assume: ${{ env.TESTING_PIPELINE_EXECUTION_ROLE }}
Expand Down Expand Up @@ -79,7 +79,7 @@ jobs:
- run: sam build --template ${SAM_TEMPLATE} --use-container

- name: Assume the testing pipeline user role
uses: aws-actions/configure-aws-credentials@v1-node16
uses: aws-actions/configure-aws-credentials@v4
with:
aws-region: ${{ env.TESTING_REGION }}
role-to-assume: ${{ env.TESTING_PIPELINE_EXECUTION_ROLE }}
Expand Down Expand Up @@ -112,7 +112,7 @@ jobs:
run: sam build --template ${SAM_TEMPLATE} --use-container

- name: Assume the testing pipeline user role
uses: aws-actions/configure-aws-credentials@v1-node16
uses: aws-actions/configure-aws-credentials@v4
with:
aws-region: ${{ env.TESTING_REGION }}
role-to-assume: ${{ env.TESTING_PIPELINE_EXECUTION_ROLE }}
Expand All @@ -128,13 +128,13 @@ jobs:
--region ${TESTING_REGION} \
--output-template-file packaged-testing.yaml
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: packaged-testing.yaml
path: packaged-testing.yaml

- name: Assume the prod pipeline user role
uses: aws-actions/configure-aws-credentials@v1-node16
uses: aws-actions/configure-aws-credentials@v4
with:
aws-region: ${{ env.PROD_REGION }}
role-to-assume: ${{ env.PROD_PIPELINE_EXECUTION_ROLE }}
Expand All @@ -150,7 +150,7 @@ jobs:
--region ${PROD_REGION} \
--output-template-file packaged-prod.yaml
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: packaged-prod.yaml
path: packaged-prod.yaml
Expand All @@ -164,12 +164,12 @@ jobs:
- uses: aws-actions/setup-sam@v2
with:
use-installer: true
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: packaged-testing.yaml

- name: Assume the testing pipeline user role
uses: aws-actions/configure-aws-credentials@v1-node16
uses: aws-actions/configure-aws-credentials@v4
with:
aws-region: ${{ env.TESTING_REGION }}
role-to-assume: ${{ env.TESTING_PIPELINE_EXECUTION_ROLE }}
Expand Down Expand Up @@ -209,12 +209,12 @@ jobs:
- uses: aws-actions/setup-sam@v2
with:
use-installer: true
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: packaged-prod.yaml

- name: Assume the prod pipeline user role
uses: aws-actions/configure-aws-credentials@v1-node16
uses: aws-actions/configure-aws-credentials@v4
with:
aws-region: ${{ env.PROD_REGION }}
role-to-assume: ${{ env.PROD_PIPELINE_EXECUTION_ROLE }}
Expand Down

0 comments on commit 25ce6ce

Please sign in to comment.