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

Allow certificate inspection on policy signature verification (including fulcio extensions) #246

Merged
merged 1 commit into from
May 13, 2024

Conversation

ChaosInTheCRD
Copy link
Collaborator

These changes are necessary to fully enable in-toto/witness#353 to work. Also note that this PR contains a fix for a panic in the case of a []RunResult of length 0 (implying an error) getting returned from Run.

fulcio)

Signed-off-by: chaosinthecrd <tom@tmlabs.co.uk>
@colek42
Copy link
Member

colek42 commented May 13, 2024

lgtm!

@@ -89,9 +89,12 @@ type RunResult struct {
// Deprecated: Use RunWithExports instead
func Run(stepName string, opts ...RunOption) (RunResult, error) {
results, err := run(stepName, opts)
if len(results) > 1 {
if len(results) == 0 {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@jkjell jkjell merged commit 6c13a51 into in-toto:main May 13, 2024
12 checks passed
matglas pushed a commit to matglas/go-witness that referenced this pull request May 14, 2024
…ing fulcio extensions) (in-toto#246)

allow certificate inspection on policy signature verification (including
fulcio)

Signed-off-by: chaosinthecrd <tom@tmlabs.co.uk>
Signed-off-by: Matthias Glastra <matglas.git@gmail.com>
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

3 participants