Skip to content

Commit ed5bdb3

Browse files
committed
Fix base repo ref
Tool: gitpod/catfood.gitpod.cloud
1 parent 29be042 commit ed5bdb3

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,7 @@ jobs:
323323
- name: Scan Images for Vulnerabilities
324324
shell: bash
325325
run: |
326+
INSTALLER_IMAGE_BASE_REPO=${{ needs.configuration.outputs.image_repo_base }}
326327
./scripts/trivy/trivy-scan-images.sh ${{ needs.configuration.outputs.version }} CRITICAL
327328
328329
install-app:

scripts/trivy/trivy-scan-images.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ if [[ $# -lt 2 ]]; then
1515
exit 1
1616
fi
1717

18+
INSTALLER_IMAGE_BASE_REPO="${INSTALLER_IMAGE_BASE_REPO:-eu.gcr.io/gitpod-dev-artifact}"
19+
1820
# Extract VERSION and FAIL_ON from arguments and remove them from args list
1921
VERSION="$1"
2022
FAIL_ON="$2"
@@ -52,8 +54,9 @@ if ! command -v "$TRIVY_CMD" &> /dev/null; then
5254
fi
5355

5456
echo "=== Gathering list of all images for $VERSION"
57+
5558
# Run the installer docker image to get the list of images
56-
docker run --rm -v "$CONFIG_DIR:/config" eu.gcr.io/gitpod-core-dev/build/installer:"${VERSION}" mirror list \
59+
docker run --rm -v "$CONFIG_DIR:/config" "$INSTALLER_IMAGE_BASE_REPO/build/installer:${VERSION}" mirror list \
5760
-c "/config/$INSTALLER_CONFIG_FILE" > "$SCAN_DIR/mirror.json"
5861

5962
# Extract original image references

0 commit comments

Comments
 (0)