Skip to content

Commit e4dec7a

Browse files
chore: add GS Scorecard versioning and improve ECR login process
1 parent 4de3ea5 commit e4dec7a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/reusable-build-test-release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ env:
113113
PYTHON_VERSION: "3.9"
114114
POETRY_VERSION: "2.1.4"
115115
POETRY_EXPORT_PLUGIN_VERSION: "1.9.0"
116+
GS_SCORECARD_VERSION: "1.0.0"
116117
jobs:
117118
validate-custom-version:
118119
runs-on: ubuntu-latest
@@ -832,11 +833,10 @@ jobs:
832833
aws-secret-access-key: ${{ secrets.GSSA_AWS_SECRET_ACCESS_KEY }}
833834
aws-region: us-west-2
834835
- name: Login to Amazon ECR
835-
run: |
836-
aws ecr get-login-password --region us-west-2 | docker login --username AWS --password-stdin 956110764581.dkr.ecr.us-west-2.amazonaws.com
836+
uses: aws-actions/amazon-ecr-login@v2
837837
- name: Pull GS Scorecard image
838-
run: |
839-
docker pull 956110764581.dkr.ecr.us-west-2.amazonaws.com/ta-automation/gs-scorecard:1.0.0
838+
run:
839+
docker pull 956110764581.dkr.ecr.us-west-2.amazonaws.com/ta-automation/gs-scorecard:${{ env.GS_SCORECARD_VERSION }}
840840
- name: Run GS Scorecard
841841
env:
842842
GITHUB_TOKEN: ${{ secrets.GH_TOKEN_ADMIN }}

0 commit comments

Comments
 (0)