Skip to content

Commit

Permalink
fix: mismatched types int and string in cue policy
Browse files Browse the repository at this point in the history
Signed-off-by: hectorj2f <hectorf@vmware.com>
  • Loading branch information
hectorj2f committed Apr 20, 2022
1 parent 8610c0d commit 2f9cf6f
Showing 1 changed file with 5 additions and 5 deletions.
Expand Up @@ -111,20 +111,20 @@ spec:
type: cue
data: |
if len(authorityMatches."keyless-att".attestations) < 2 {
keylessAttestationsErr: "error"
keylessAttestationsErr: "Did not get both keyless attestations"
keylessAttestationsErr: 1
keylessAttestationsErrMsg: "Did not get both keyless attestations"
}
if len(authorityMatches."key-att".attestations) < 1 {
keyAttestationsErr: 1
keyAttestationsErr: "Did not get key attestation"
keyAttestationsErrMsg: "Did not get key attestation"
}
if len(authorityMatches."keyless-signature".signatures) < 1 {
keylessSignatureErr: 1
keylessSignatureErr: "Did not get keyless signature"
keylessSignatureErrMsg: "Did not get keyless signature"
}
if len(authorityMatches."key-signature".signatures) < 1 {
keySignatureErr: 1
keySignatureErr: "Did not get key signature"
keySignatureErrMsg: "Did not get key signature"
}
authorityMatches: {
"key-att": {
Expand Down

0 comments on commit 2f9cf6f

Please sign in to comment.