Skip to content

Commit 52e982e

Browse files
committed
update
Signed-off-by: laurentsimon <[email protected]>
1 parent 353ea18 commit 52e982e

File tree

4 files changed

+162
-263
lines changed

4 files changed

+162
-263
lines changed

verifiers/internal/gha/provenance.go

+2
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ func verifySourceURI(prov slsaprovenance.Provenance, expectedSourceURI string, a
120120
if err != nil {
121121
return err
122122
}
123+
123124
materialURI, err := sourceFromURI(materialSourceURI, allowNoMaterialRef)
124125
if err != nil {
125126
return err
@@ -166,6 +167,7 @@ func sourceFromURI(uri string, allowNoRef bool) (string, error) {
166167
return "", fmt.Errorf("%w: %s", serrors.ErrorMalformedURI,
167168
uri)
168169
}
170+
169171
return r[0], nil
170172
}
171173

0 commit comments

Comments
 (0)