Skip to content

Commit 511bf5f

Browse files
committed
fix(harbor-sbom-browser): set HOME so cosign can cache the sigstore trusted root
1 parent dca89b0 commit 511bf5f

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

tools/harbor-sbom-browser/Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ RUN microdnf install -y yum \
1313
&& yum clean all \
1414
&& microdnf clean all
1515

16+
# cosign caches the sigstore trusted root and the ctlog public keys below `$HOME/.sigstore`.
17+
# The container runs as an unprivileged user whose home directory would otherwise be `/`, which
18+
# is not writable, and every attestation verification would fail.
19+
ENV HOME=/tmp
20+
1621
COPY --from=builder /app/harbor-sbom-browser /
1722

1823
ENTRYPOINT ["/harbor-sbom-browser"]

0 commit comments

Comments
 (0)