Skip to content

Commit f19a2b8

Browse files
committed
use local script for build git secrets
1 parent fc891d8 commit f19a2b8

File tree

1 file changed

+2
-15
lines changed

1 file changed

+2
-15
lines changed

.github/workflows/build_nhsd_git_secrets.yml

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,6 @@ jobs:
3232
with:
3333
fetch-depth: 0
3434

35-
- name: Download check_ecr_image_scan_results.sh script
36-
env:
37-
SCRIPT_TAG: ${{ inputs.check_ecr_image_scan_results_script_tag }}
38-
run: |
39-
curl -L "https://raw.githubusercontent.com/NHSDigital/eps-workflow-quality-checks/refs/heads/${SCRIPT_TAG}/.github/scripts/check_ecr_image_scan_results.sh" -o check_ecr_image_scan_results.sh
40-
chmod +x check_ecr_image_scan_results.sh
4135
- name: Build dev container
4236
run: |
4337
docker build -f dockerfiles/nhsd-git-secrets.dockerfile -t nhsd-git-secrets-image .
@@ -76,7 +70,7 @@ jobs:
7670
ACCOUNT_ID: ${{ steps.retrieve-deploy-account-id.outputs.account_id }}
7771
run: |
7872
sleep 30
79-
./check_ecr_image_scan_results.sh
73+
./.github/scripts/check_ecr_image_scan_results.sh
8074
8175
build_nhsd_git_secrets_arm64:
8276
permissions:
@@ -88,13 +82,6 @@ jobs:
8882
with:
8983
fetch-depth: 0
9084

91-
- name: Download check_ecr_image_scan_results.sh script
92-
env:
93-
SCRIPT_TAG: ${{ inputs.check_ecr_image_scan_results_script_tag }}
94-
run: |
95-
curl -L "https://raw.githubusercontent.com/NHSDigital/eps-workflow-quality-checks/refs/heads/${SCRIPT_TAG}/.github/scripts/check_ecr_image_scan_results.sh" -o check_ecr_image_scan_results.sh
96-
chmod +x check_ecr_image_scan_results.sh
97-
9885
- name: Build dev container
9986
run: |
10087
docker build -f dockerfiles/nhsd-git-secrets.dockerfile -t nhsd-git-secrets-image-arm .
@@ -134,7 +121,7 @@ jobs:
134121
run: |
135122
# Wait a moment for ECR to process the new manifest
136123
sleep 30
137-
./check_ecr_image_scan_results.sh
124+
./.github/scripts/check_ecr_image_scan_results.sh
138125
139126
create_multi_arch_manifest:
140127
permissions:

0 commit comments

Comments
 (0)