-
Notifications
You must be signed in to change notification settings - Fork 8
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
New subject-checksums input param #198
base: main
Are you sure you want to change the base?
Conversation
77a6ee2
to
7802356
Compare
Signed-off-by: Brian DeHamer <[email protected]>
7802356
to
d8c307e
Compare
} | ||
|
||
/* istanbul ignore next */ | ||
if (stats.size > MAX_SUBJECT_CHECKSUM_SIZE_BYTES) { |
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.
Love this check ❤️
@@ -151,3 +225,14 @@ const parseList = (input: string): string[] => { | |||
|
|||
return res.filter(item => item).map(pat => pat.trim()) | |||
} | |||
|
|||
const digestAlgorithm = (digest: string): string => { |
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.
Should we also verify that the digest is of expected format (hex encoded) too, and fail early if not?
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.
Good idea. Added a check to ensure the digest is a hex string.
Signed-off-by: Brian DeHamer <[email protected]>
Adds support for a new
subject-checksums
input parameter which allows the user to identify the attestation subjects by passing the path of the checksums file.This enables direct integration with tools like goreleaser, jreleaser, and the sha*sum suite of tools which generate a checksums file.