Skip to content

Commit 1a88ce0

Browse files
fixed a spelling error
1 parent 5ff050b commit 1a88ce0

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

rego/policies.rego

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ fromOrg (resp, orgs) if {
88
provenance == resp.responses[i][j][k].statement.predicateType
99
issuer == resp.responses[i][j][k].signature.certificate.issuer
1010
orgUri := resp.responses[i][j][k].signature.certificate.sourceRepositoryOwnerURI
11-
# Prefix the org name with / before doing comparisson
11+
# Prefix the org name with / before doing comparison
1212
endswith(orgUri, concat("", ["/", orgs[l]]))
1313
}
1414

@@ -20,7 +20,7 @@ fromRepo (resp, repos) if {
2020
provenance == resp.responses[i][j][k].statement.predicateType
2121
issuer == resp.responses[i][j][k].signature.certificate.issuer
2222
uri := resp.responses[i][j][k].signature.certificate.sourceRepositoryURI
23-
# Prefix the repo name with / before doing comparisson
23+
# Prefix the repo name with / before doing comparison
2424
endswith(uri, concat("", ["/", repos[l]]))
2525
}
2626

@@ -40,7 +40,7 @@ fromOrgWithSignerRepo(resp, orgs, signerRepos) if {
4040
# find the occurence of `/.github/` and trim everything after it
4141
p := indexof(signerUri, "/.github/")
4242
signerRepoTrim := substring(signerUri, 0, p)
43-
# add back the / prefix to get proper delimiter when doing comparisson
43+
# add back the / prefix to get proper delimiter when doing comparison
4444
signerRepo := concat("", ["/", signerRepoTrim])
4545
endswith(signerRepo, concat("", ["/", signerRepos[m]]))
4646
}

validation/from-org-constraint-template.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,6 @@ spec:
4444
provenance == resp.responses[i][j][k].statement.predicateType
4545
issuer == resp.responses[i][j][k].signature.certificate.issuer
4646
orgUri := resp.responses[i][j][k].signature.certificate.sourceRepositoryOwnerURI
47-
# Prefix the org name with / before doing comparisson
47+
# Prefix the org name with / before doing comparison
4848
endswith(orgUri, concat("", ["/", orgs[l]]))
4949
}

validation/from-org-with-signer-constraint-template.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ spec:
5252
# find the occurence of `/.github/` and trim everything after it
5353
p := indexof(signerUri, "/.github/")
5454
signerRepoTrim := substring(signerUri, 0, p)
55-
# add back the / prefix to get proper delimiter when doing comparisson
55+
# add back the / prefix to get proper delimiter when doing comparison
5656
signerRepo := concat("", ["/", signerRepoTrim])
5757
endswith(signerRepo, concat("", ["/", signerRepos[m]]))
5858
}

validation/from-repo-constraint-template.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,6 @@ spec:
4444
provenance == resp.responses[i][j][k].statement.predicateType
4545
issuer == resp.responses[i][j][k].signature.certificate.issuer
4646
uri := resp.responses[i][j][k].signature.certificate.sourceRepositoryURI
47-
# Prefix the repo name with / before doing comparisson
47+
# Prefix the repo name with / before doing comparison
4848
endswith(uri, concat("", ["/", repos[l]]))
4949
}

0 commit comments

Comments
 (0)