Skip to content
Merged
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 pulp_python/app/provenance.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class Provenance(BaseModel):
attestation_bundles: list[AttestationBundle]


def verify_provenance(filename, sha256, provenance, offline=False):
def verify_provenance(filename, sha256, provenance, offline=True):
"""Verify the provenance object is valid for the package."""
dist = Distribution(name=filename, digest=sha256)
for bundle in provenance.attestation_bundles:
Expand Down
2 changes: 1 addition & 1 deletion pulp_python/app/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ def validate_attestations(self, value):
raise serializers.ValidationError(_("Invalid attestations: {}".format(e)))
return attestations

def handle_attestations(self, filename, sha256, attestations, offline=False):
def handle_attestations(self, filename, sha256, attestations, offline=True):
"""Handle converting attestations to a Provenance object."""
user = get_current_authenticated_user()
publisher = AnyPublisher(kind="Pulp User", prn=get_prn(user))
Expand Down