@@ -29,6 +29,9 @@ SHELL=/usr/bin/env bash -euo pipefail
2929render-readme :
3030 scripts/render_readme.sh
3131
32+ render-docs :
33+ scripts/docs_templating.sh
34+
3235# # Docker related targets
3336docker-build :
3437 docker build --force-rm --build-arg VERSION=${VERSION} -t " ${DOCKER_REPO} /${ORGANIZATION} /${OPERATOR_NAME} :${VERSION} -${ARCH} " -f docker/Dockerfile .
@@ -48,7 +51,7 @@ docker-publish:
4851 # Uses the keyless signing flow with Github Actions as identity provider\
4952 cosign sign -y " ${DOCKER_REPO} /${ORGANIZATION} /${OPERATOR_NAME} @$$ REPO_DIGEST_OF_IMAGE" ; \
5053 # Generate the SBOM for the operator image, this leverages the already generated SBOM for the operator binary by cargo-cyclonedx\
51- syft scan --output cyclonedx-json=sbom.json --select-catalogers " -cargo-auditable-binary-cataloger" --scope all-layers --source-name " ${OPERATOR_NAME} " --source-version " ${VERSION} -${ARCH} " " ${DOCKER_REPO} /${ORGANIZATION} /${OPERATOR_NAME} @$$ REPO_DIGEST_OF_IMAGE" ; \
54+ syft scan --output cyclonedx-json@1.5 =sbom.json --select-catalogers " -cargo-auditable-binary-cataloger,+sbom -cataloger" --scope all-layers --source-name " ${OPERATOR_NAME} " --source-version " ${VERSION} -${ARCH} " " ${DOCKER_REPO} /${ORGANIZATION} /${OPERATOR_NAME} @$$ REPO_DIGEST_OF_IMAGE" ; \
5255 # Determine the PURL for the container image\
5356 URLENCODED_REPO_DIGEST_OF_IMAGE=$$(echo "$$REPO_DIGEST_OF_IMAGE" | sed 's/:/%3A/g' ) ; \
5457 PURL=" pkg:oci/${OPERATOR_NAME} @$$ URLENCODED_REPO_DIGEST_OF_IMAGE?arch=${ARCH} &repository_url=${DOCKER_REPO} %2F${ORGANIZATION} %2F${OPERATOR_NAME} " ; \
@@ -74,7 +77,7 @@ docker-publish:
7477 # Uses the keyless signing flow with Github Actions as identity provider\
7578 cosign sign -y "${OCI_REGISTRY_HOSTNAME}/${OCI_REGISTRY_PROJECT_IMAGES}/${OPERATOR_NAME}@$$REPO_DIGEST_OF_IMAGE";\
7679 # Generate the SBOM for the operator image, this leverages the already generated SBOM for the operator binary by cargo-cyclonedx\
77- syft scan --output cyclonedx-json=sbom.json --select-catalogers "-cargo-auditable-binary-cataloger" --scope all-layers --source-name "${OPERATOR_NAME}" --source-version "${VERSION}-${ARCH}" "${OCI_REGISTRY_HOSTNAME}/${OCI_REGISTRY_PROJECT_IMAGES}/${OPERATOR_NAME}@$$REPO_DIGEST_OF_IMAGE";\
80+ syft scan --output cyclonedx-json@1.5 =sbom.json --select-catalogers "-cargo-auditable-binary-cataloger,+sbom -cataloger" --scope all-layers --source-name "${OPERATOR_NAME}" --source-version "${VERSION}-${ARCH}" "${OCI_REGISTRY_HOSTNAME}/${OCI_REGISTRY_PROJECT_IMAGES}/${OPERATOR_NAME}@$$REPO_DIGEST_OF_IMAGE";\
7881 # Determine the PURL for the container image\
7982 URLENCODED_REPO_DIGEST_OF_IMAGE=$$(echo "$$REPO_DIGEST_OF_IMAGE" | sed 's/:/%3A/g');\
8083 PURL="pkg:oci/${OPERATOR_NAME}@$$URLENCODED_REPO_DIGEST_OF_IMAGE?arch=${ARCH}&repository_url=${OCI_REGISTRY_HOSTNAME}%2F${OCI_REGISTRY_PROJECT_IMAGES}%2F${OPERATOR_NAME}";\
0 commit comments