File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -37,7 +37,13 @@ CVE-2019-16227
3737CVE-2026-42217
3838CVE-2026-24450
3939CVE-2026-24660
40+ CVE-2026-57433
41+ CVE-2026-63970
42+ CVE-2026-64600
4043# Debian high vulns
44+ CVE-2026-53399
45+ CVE-2026-64017
46+ CVE-2026-36849
4147CVE-2013-7445
4248CVE-2019-16226
4349CVE-2019-16228
Original file line number Diff line number Diff line change @@ -5,16 +5,14 @@ set -euo >/dev/null
55# # This will allow for local use for testing or scanning with trivy (multi-manifest builds cannot be imported)
66# # we will build a multi-manifest build during ./docker-push.sh
77ARCHES=${ARCHES:- ' amd64' }
8-
9- DEBIAN=${IS_DEBIAN: +" -debian" }
10-
8+ : " ${IS_DEBIAN:= } "
119DOCKER_IMAGE_ORG_AND_NAME=" ${DOCKER_REPOSITORY:- pactfoundation} /pact-broker"
1210for arch in $ARCHES ; do
1311 docker buildx build \
1412 --platform linux/$arch \
1513 --build-arg VERSION=" ${TAG:- dev} " \
1614 --output type=docker \
17- --tag ${DOCKER_IMAGE_ORG_AND_NAME} :latest-${arch}${DEBIAN } \
15+ --tag ${DOCKER_IMAGE_ORG_AND_NAME} :latest-${arch}${IS_DEBIAN : + " -debian " } \
1816 -f Dockerfile${IS_DEBIAN: +.debian} \
1917 .
2018done
Original file line number Diff line number Diff line change @@ -11,24 +11,26 @@ push() {
1111 --annotation " org.opencontainers.image.source=$GITHUB_SERVER_URL /$GITHUB_REPOSITORY " \
1212 --annotation " org.opencontainers.image.revision=$GITHUB_SHA " \
1313 --output=type=image,push=true \
14- -t ${DOCKER_IMAGE_ORG_AND_NAME} :$1 .
14+ -t ${DOCKER_IMAGE_ORG_AND_NAME} :$1 \
15+ -f Dockerfile${IS_DEBIAN: +.debian} .
16+
1517}
1618push_ghcr () {
1719 docker buildx build --platform=linux/amd64,linux/arm64,linux/arm \
1820 --build-arg VERSION=${TAG} \
1921 --output=type=image,push=true \
20- -t ghcr.io/$( echo $DOCKER_IMAGE_ORG_AND_NAME | sed ' s/pactfoundation/pact-foundation/g' ) :$1 .
22+ -t ghcr.io/$( echo $DOCKER_IMAGE_ORG_AND_NAME | sed ' s/pactfoundation/pact-foundation/g' ) :$1 \
23+ -f Dockerfile${IS_DEBIAN: +.debian} .
2124}
2225
2326if [ -n " ${MAJOR_TAG:- } " ]; then
24- push ${MAJOR_TAG}
25- push_ghcr ${MAJOR_TAG}
27+ push ${MAJOR_TAG}${DEBIAN}
28+ push_ghcr ${MAJOR_TAG}${DEBIAN}
2629fi
2730
28- push ${TAG}
29- push_ghcr ${TAG}
30-
31+ push ${TAG}${DEBIAN}
32+ push_ghcr ${TAG}${DEBIAN}
3133if [ " ${PUSH_TO_LATEST} " != " false" ]; then
32- push latest
33- push_ghcr latest
34+ push latest${DEBIAN}
35+ push_ghcr latest${DEBIAN}
3436fi
Original file line number Diff line number Diff line change @@ -5,5 +5,4 @@ set -euo >/dev/null
55script_dir=$( cd " $( dirname $0 ) " && pwd)
66
77ARCH=${ARCH:- ' amd64' }
8- DEBIAN=${IS_DEBIAN: +" -debian" }
9- ${script_dir} /../scan.sh ${DOCKER_IMAGE_ORG_AND_NAME} :latest-${ARCH}${DEBIAN}
8+ ${script_dir} /../scan.sh ${DOCKER_IMAGE_ORG_AND_NAME} :latest-${ARCH}${IS_DEBIAN: +" -debian" }
Original file line number Diff line number Diff line change @@ -5,5 +5,4 @@ set -euo >/dev/null
55script_dir=$( cd " $( dirname $0 ) " && pwd)
66
77ARCH=${ARCH:- ' amd64' }
8- IS_DEBIAN=${IS_DEBIAN: +" -debian" }
9- trivy image ${DOCKER_IMAGE_ORG_AND_NAME} :latest-${ARCH}${IS_DEBIAN} --severity HIGH,CRITICAL --exit-code 1 --ignorefile ${script_dir} /../.trivyignore
8+ trivy image ${DOCKER_IMAGE_ORG_AND_NAME} :latest-${ARCH}${IS_DEBIAN: +" -debian" } --severity HIGH,CRITICAL --exit-code 1 --ignorefile ${script_dir} /../.trivyignore
Original file line number Diff line number Diff line change 11#! /bin/sh
22
33set -euo > /dev/null
4+ : " ${IS_DEBIAN:= } "
45
56workflow_dir=$( cd " $( dirname $0 ) " && pwd)
67
@@ -15,6 +16,13 @@ ${workflow_dir}/validate.sh
1516${workflow_dir} /docker-prepare.sh
1617${workflow_dir} /docker-build.sh
1718${workflow_dir} /docker-scan.sh
18- ${workflow_dir} /prepare-release.sh
19+
20+ # skip release prep and git push on the debian workflow to avoid
21+ # overwriting
22+ if [ -z " ${IS_DEBIAN} " ]; then
23+ ${workflow_dir} /prepare-release.sh
24+ fi
1925${workflow_dir} /docker-push.sh
20- ${workflow_dir} /git-push.sh
26+ if [ -z " ${IS_DEBIAN} " ]; then
27+ ${workflow_dir} /git-push.sh
28+ fi
Original file line number Diff line number Diff line change 1515 export ARCH=amd64
1616fi
1717
18+ : " ${IS_DEBIAN:= } "
19+ export IS_DEBIAN=$IS_DEBIAN
20+ export DEBIAN=${IS_DEBIAN: +" -debian" }
21+ echo " IS_DEBIAN=$IS_DEBIAN "
22+
1823if [ -z " $TAG " ]; then
1924 if [ -n " $VERSION " ] && [ -z " $INCREMENT " ]; then
2025 echo " If VERSION is specified, then INCREMENT must also be specified"
@@ -27,11 +32,9 @@ if [ -z "$TAG" ]; then
2732 export VERSION=$( bundle exec bump show-next $INCREMENT )
2833 fi
2934
30- DEBIAN=${IS_DEBIAN: +" -debian" }
31-
3235 export PACT_BROKER_VERSION=$( grep " pact_broker (" pact_broker/Gemfile.lock | awk -F ' [()]' ' {print $2}' )
33- export TAG=" $VERSION -pactbroker${PACT_BROKER_VERSION}${DEBIAN} "
34- export MAJOR_TAG=" $( echo $VERSION | cut -d' .' -f1) ${DEBIAN} "
36+ export TAG=" $VERSION -pactbroker${PACT_BROKER_VERSION} "
37+ export MAJOR_TAG=" $( echo $VERSION | cut -d' .' -f1) "
3538
3639 echo " INCREMENT=$INCREMENT "
3740 echo " VERSION=$VERSION "
Original file line number Diff line number Diff line change 22set -eu
33
44wget -q -O - https://raw.githubusercontent.com/aquasecurity/trivy/master/contrib/install.sh | sh -s -- -b /usr/local/bin
5- trivy filesystem --exit-code 1 --no-progress /
5+ trivy filesystem --exit-code 1 --severity HIGH,CRITICAL -- no-progress /
Original file line number Diff line number Diff line change 33set -e
44
55: " ${TAG:? TAG must be provided} "
6+ : " ${IS_DEBIAN:= } "
67DEBIAN=${IS_DEBIAN: +" -debian" }
78
89docker_compose_files=$( find . -name " docker-compose-test*.yml" )
You can’t perform that action at this time.
0 commit comments