From 71f79ec88323d14a4005e6ca17b36e05db9e7c54 Mon Sep 17 00:00:00 2001 From: Clayton Parnell <42805768+claytonparnell@users.noreply.github.com> Date: Thu, 14 Mar 2024 14:15:03 -0400 Subject: [PATCH] fix: Fix codebuild authentication (#244) --- .github/workflows/build-image.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-image.yml b/.github/workflows/build-image.yml index 54494308..2805338a 100644 --- a/.github/workflows/build-image.yml +++ b/.github/workflows/build-image.yml @@ -57,7 +57,7 @@ jobs: # Note - CodeBuild depends on this branch name. Don't change without corresponding backend change. run: git checkout -b release-${{ steps.calc_target.outputs.target_version }} - name: Generate artifacts - run: python ./src/main.py create-${{ inputs.release-type }}-version-artifacts --base-patch-version ${{ inputs.base-version }} + run: python ./src/main.py create-${{ inputs.release-type }}-version-artifacts --base-patch-version ${{ inputs.base-version }} --force - name: Commit .in artifacts to branch env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -89,13 +89,14 @@ jobs: uses: aws-actions/configure-aws-credentials@v4 with: role-to-assume: ${{ secrets.START_CODEBUILD_ROLE }} - aws-region: us-west-2 + aws-region: us-east-1 # CodeBuild timeout of 8 hours role-duration-seconds: 3840 + audience: https://sts.us-east-1.amazonaws.com - name: Run CodeBuild uses: dark-mechanicum/aws-codebuild@v1 env: CODEBUILD__sourceVersion: 'pr/${{ needs.open-pr.outputs.pr_id }}' with: - projectName: 'buildtestpublicimage1C7307A-9AzES2hf19lW' - buildspec: '{"imageOverride": "aws/codebuild/standard:7.0"}' + projectName: ${{ secrets.CODEBUILD_JOB_NAME }} + buildspec: '{"imageOverride": "aws/codebuild/standard:7.0", "imagePullCredentialsTypeOverride": "CODEBUILD"}'