Skip to content
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

toil(pkg-mgr:pip): report SBOM "cachi2:missing_hash:in_file" property... #531

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

ben-alkov
Copy link
Member

...when any 'requirements*.txt file is unhashed

  • fix test data

Maintainers will complete the following section

  • Commit messages are descriptive enough
  • Code coverage from testing does not decrease and new code is covered
  • Docs updated (if applicable)
  • Docs links in the code are still valid (if docs were updated)

Note: if the contribution is external (not from an organization member), the CI
pipeline will not run automatically. After verifying that the CI is safe to run:

@ben-alkov ben-alkov force-pushed the toil-pkg-mgr-pip-fix-SBOM-missing-hash branch 2 times, most recently from f3c2b1c to b160f5c Compare May 2, 2024 16:21
@ben-alkov
Copy link
Member Author

ben-alkov commented May 2, 2024

This one-line change produces correct SBOMs, but I'm not completely comfortable with it as I don't fully understand why it works...

Refactored, but I still don't completely understand why wheels need to be special-cased

Ignore, this is obviated by later work.

@ben-alkov ben-alkov force-pushed the toil-pkg-mgr-pip-fix-SBOM-missing-hash branch 5 times, most recently from 83ea150 to 445010c Compare May 13, 2024 21:13
@ben-alkov ben-alkov force-pushed the toil-pkg-mgr-pip-fix-SBOM-missing-hash branch 3 times, most recently from 9cd7c0b to b79b4fc Compare May 30, 2024 20:33
@ben-alkov ben-alkov marked this pull request as ready for review May 30, 2024 20:36
...for checking  URL download's "insecure" and "url_with_hash" properties is incorrect, strictly speaking

Signed-off-by: Ben Alkov <ben.alkov@redhat.com>
- rename `.*verif[y|ied]` -> `.*match[ed]` to more accurately reflect usage
- in many places, we say "hash" when we mean "checksum", strictly speaking

Signed-off-by: Ben Alkov <ben.alkov@redhat.com>
 - all download_infos should have the same field order

Signed-off-by: Ben Alkov <ben.alkov@redhat.com>
…cies...

...to make it easier to understand

Signed-off-by: Ben Alkov <ben.alkov@redhat.com>
Signed-off-by: Ben Alkov <ben.alkov@redhat.com>
...when *any* 'requirements*.txt' file is unhashed

- adjust unit tests

Signed-off-by: Ben Alkov <ben.alkov@redhat.com>
@ben-alkov ben-alkov force-pushed the toil-pkg-mgr-pip-fix-SBOM-missing-hash branch from b79b4fc to 8360891 Compare May 30, 2024 20:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant