Skip to content

Commit 3033a72

Browse files
authored
fix: sonar security issues related to input injection (#2114)
1 parent 4162247 commit 3033a72

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

.github/actions/build-images/action.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,15 @@ runs:
2525
aws-region: ${{ inputs.aws-region }}
2626

2727
- name: Auth to the ECR
28-
run: bash ./docker/auth.sh ${{ inputs.aws-ecr-uri }} ${{ inputs.aws-region }}
28+
env:
29+
AWS_ECR_URI: ${{ inputs.aws-ecr-uri }}
30+
AWS_REGION: ${{ inputs.aws-region }}
31+
run: bash ./docker/auth.sh $AWS_ECR_URI $AWS_REGION
2932
shell: bash
3033

3134
- name: Build and push the images
3235
env:
3336
TAG: ${{ inputs.tag }}
34-
run: bash ./docker/build.sh ${{ inputs.aws-ecr-uri }} $TAG
37+
AWS_ECR_URI: ${{ inputs.aws-ecr-uri }}
38+
run: bash ./docker/build.sh $AWS_ECR_URI $TAG
3539
shell: bash

0 commit comments

Comments
 (0)