Skip to content

Commit e74d25a

Browse files
authored
Merge pull request #1117 from gerrod3/no-tuf-ref
Turn off TUF metadata update on provenance verification
2 parents 90e66dc + f84e726 commit e74d25a

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

pulp_python/app/provenance.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class Provenance(BaseModel):
5858
attestation_bundles: list[AttestationBundle]
5959

6060

61-
def verify_provenance(filename, sha256, provenance, offline=False):
61+
def verify_provenance(filename, sha256, provenance, offline=True):
6262
"""Verify the provenance object is valid for the package."""
6363
dist = Distribution(name=filename, digest=sha256)
6464
for bundle in provenance.attestation_bundles:

pulp_python/app/serializers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ def validate_attestations(self, value):
352352
raise serializers.ValidationError(_("Invalid attestations: {}".format(e)))
353353
return attestations
354354

355-
def handle_attestations(self, filename, sha256, attestations, offline=False):
355+
def handle_attestations(self, filename, sha256, attestations, offline=True):
356356
"""Handle converting attestations to a Provenance object."""
357357
user = get_current_authenticated_user()
358358
publisher = AnyPublisher(kind="Pulp User", prn=get_prn(user))

0 commit comments

Comments
 (0)