Skip to content

Commit c4368bb

Browse files
committed
Fix output folder permissions for syft 1.27+
1 parent 5785a7c commit c4368bb

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

ansible/roles/repository/templates/Jenkinsfile.j2

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1073,6 +1073,7 @@ pipeline {
10731073
sh '''#! /bin/bash
10741074
set -e
10751075
TEMPDIR=$(mktemp -d)
1076+
chown 65532:65532 "${TEMPDIR}"
10761077
if [ "${MULTIARCH}" == "true" ] && [ "${PACKAGE_CHECK}" != "true" ]; then
10771078
LOCAL_CONTAINER=${IMAGE}:amd64-${META_TAG}
10781079
else
@@ -1082,7 +1083,7 @@ pipeline {
10821083
docker run --rm \
10831084
-v /var/run/docker.sock:/var/run/docker.sock:ro \
10841085
-v ${TEMPDIR}:/tmp \
1085-
ghcr.io/anchore/syft:v1.26.1 \
1086+
ghcr.io/anchore/syft:latest \
10861087
${LOCAL_CONTAINER} -o table=/tmp/package_versions.txt
10871088
NEW_PACKAGE_TAG=$(md5sum ${TEMPDIR}/package_versions.txt | cut -c1-8 )
10881089
echo "Package tag sha from current packages in buit container is ${NEW_PACKAGE_TAG} comparing to old ${PACKAGE_TAG} from github"

0 commit comments

Comments
 (0)