-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This provenance package is the implementation of the SLSA provenance specifications at https://slsa.dev/spec/v1.0/provenance For now, at least two enhancements are possible: - Some parameters are TypeURI or ResourceURI, but the specification says they are strings. Setting those attributes as `str` and having a check that they fit with TypeURI or ResourceURI classes could be better. Documentation fixes ------------------- Removed some warning about autoapi documentation, and some about possible classes mixes. Still the warning about PIPE import in TYPE_CHECKING could not be resolved. Review changes -------------- - Removed DigestSet and DigestAlgorithm enum. A digest set is considered a dictionary of str: str. The ResourceDescriptor's digest may be set, or new digest added by the add_digest() method. - The dir_hash() method has been moved to ResourceDescriptor ... maybe not the best place though. - Fixed a minor typo in the dsse package documentation - Added `as_dict()`, `as_json()`, `load_dict()` and `load_json()` for all the objects. - Added a provenance file example in the tests, and load it.
- Loading branch information
1 parent
7f5765c
commit 0133ca5
Showing
9 changed files
with
2,888 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
"""SLSA (Supply-chain Levels for Software Artifacts) package.""" |
Oops, something went wrong.