Skip to content

Commit

Permalink
fix: Update the release-check-tools to the latest changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisdutz committed Oct 2, 2023
1 parent 63b4571 commit 042a4a1
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 5 deletions.
14 changes: 12 additions & 2 deletions tools/check_sigs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,23 @@ function checkFile() {
echo "${FILE} SHA OK";
fi

gpg --verify "${FILE}.asc"

}

for bundle in "${BUNDLE_DIR}"/*.zip
do
checkFile "${bundle}"

gpg --verify "${FILE}.asc"
done

for sbom in "${BUNDLE_DIR}"/*.json
do
gpg --verify "${sbom}.asc"
done

for sbom in "${BUNDLE_DIR}"/*.xml
do
gpg --verify "${sbom}.asc"
done

echo
Expand Down
13 changes: 10 additions & 3 deletions tools/download_staged_release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -93,12 +93,17 @@ function mywget() {
(set -x; curl -f -O "$1")
}

function getSignedBundle() {
function getSignedAndHashedBundle() {
mywget "${1}"
mywget "${1}".asc
mywget "${1}".sha512
}

function getSignedBundle() {
mywget "${1}"
mywget "${1}".asc
}

mkdir -p "${DST_BASE_DIR}"
cd "${DST_BASE_DIR}"
ABS_BASE_DIR=$(pwd)
Expand All @@ -114,9 +119,11 @@ fi

mkdir -p "${DST_VER_DIR}"
cd "${DST_VER_DIR}"
mywget "${URL}"/README
mywget "${URL}"/README.md
mywget "${URL}"/RELEASE_NOTES
getSignedBundle "${URL}"/apache-plc4x-"${VER}"-source-release.zip
getSignedAndHashedBundle "${URL}"/apache-plc4x-"${VER}"-source-release.zip
getSignedBundle "${URL}"/apache-plc4x-parent-"${VER}"-sbom.json
getSignedBundle "${URL}"/apache-plc4x-parent-"${VER}"-sbom.xml

echo
echo Done Downloading to "${DST_BASE_DIR}"
Expand Down

0 comments on commit 042a4a1

Please sign in to comment.