mirror of
https://github.com/flatcar/scripts.git
synced 2025-10-01 02:22:11 +02:00
slsa-provenance: make generation optional
This commit is contained in:
parent
be46ed7bb0
commit
d86d5ebe3f
@ -10,6 +10,9 @@
|
|||||||
# We only record provenance when a package is actually being built.
|
# We only record provenance when a package is actually being built.
|
||||||
# See profiles/coreos/base/profile.bashrc for cros_...
|
# See profiles/coreos/base/profile.bashrc for cros_...
|
||||||
cros_post_src_configure_enable_slsa_provenance_report() {
|
cros_post_src_configure_enable_slsa_provenance_report() {
|
||||||
|
if [ "${GENERATE_SLSA_PROVENANCE:-}" != "true" ] ; then
|
||||||
|
einfo "Provenance generation not requested by build; skipping."
|
||||||
|
fi
|
||||||
export __slsa_provenance_report="yes"
|
export __slsa_provenance_report="yes"
|
||||||
}
|
}
|
||||||
# --
|
# --
|
||||||
|
Loading…
x
Reference in New Issue
Block a user