wildcard ref

Signed-off-by: Ramon Petgrave <ramon.petgrave64@gmail.com>
This commit is contained in:
Ramon Petgrave
2024-08-12 20:52:44 +00:00
parent 1384f51fab
commit 306deebc78
+1 -1
View File
@@ -176,7 +176,7 @@ func verifyTrustedBuilderRef(id *WorkflowIdentity, ref string) error {
id.SourceRepository == e2eTestRepository) &&
options.TestingEnabled() {
// // Allow verification on the main branch to support e2e tests.
if ref == "refs/heads/main" || ref == "refs/heads/ramonpetgrave64-internal-builder-sigstore-bundle" {
if ref == "refs/heads/main" || strings.HasPrefix(ref, "refs/heads/ramonpetgrave64") {
return nil
}