Skip to content

Set rewrite-timestamp=true #70

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .test/meta-commands/out.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
SOURCE_DATE_EPOCH=1700741054 \
docker buildx build --progress=plain \
--provenance=mode=max,builder-id='https://github.com/docker-library' \
--output '"type=oci","dest=temp.tar"' \
--output '"type=oci","dest=temp.tar","rewrite-timestamp=true"' \
--annotation 'org.opencontainers.image.source=https://github.com/docker-library/docker.git#6d541d27b5dd12639e5a33a675ebca04d3837d74:24/cli' \
--annotation 'org.opencontainers.image.revision=6d541d27b5dd12639e5a33a675ebca04d3837d74' \
--annotation 'org.opencontainers.image.created=2023-11-23T12:04:14Z' \
Expand Down
2 changes: 1 addition & 1 deletion helpers/oci-sbom.sh
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ args=(
--load=false --provenance=false # explicitly disable a few features we want to avoid
--build-arg BUILDKIT_DOCKERFILE_CHECK=skip=all # disable linting (https://github.com/moby/buildkit/pull/4962)
--sbom=generator="$BASHBREW_BUILDKIT_SBOM_GENERATOR"
--output "type=oci,tar=false,dest=."
--output "type=oci,tar=false,dest=.,rewrite-timestamps=true"
# TODO also add appropriate "--tag" lines (which would give us a mostly correct "subject" block in the generated SBOM, but we'd then need to replace instances of $sbomImageManifest with $imageManifest for their values to be correct)
--platform "$platform"
--build-context "fake=oci-layout://$input@$imageManifest"
Expand Down
1 change: 1 addition & 0 deletions meta.jq
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ def build_command:
[
"type=oci",
"dest=temp.tar",
"rewrite-timestamp=true",
empty
]
| @csv
Expand Down