-
Notifications
You must be signed in to change notification settings - Fork 29
fix: accept from-provenance repos as scm authentic #1131
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
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please pick an integration test that generates a provenance and make sure the scm authenticity passes?
Also, the description of the check on the index.rst
needs to be adjusted.
Signed-off-by: Ben Selwyn-Smith <[email protected]>
…nce available integration test Signed-off-by: Ben Selwyn-Smith <[email protected]>
Signed-off-by: Ben Selwyn-Smith <[email protected]>
Signed-off-by: Ben Selwyn-Smith <[email protected]>
b36d0b3
to
b144f9c
Compare
status=verification_result.status.value, | ||
build_tool=verification_result.build_tool.name, | ||
confidence=Confidence.MEDIUM, | ||
reason="From provenance", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not using the RepositoryVerificationResult
to be consistent with the implementation for inference?
Summary
This PR updates the SCM Authenticity check to allow acceptance of repository URLs found from provenance as being authentic.
Description of changes
The check is changed to allow non-Maven PURLs if they have provenance information with a from-repository URL. There are small changes compared to the Maven only implementation: The verification is automatically set to passed; the build tool is selected as either the first available, or set to unknown.
Related issues
Closes #1128