Skip to content

Commit

Permalink
loving yaml, thanks validation!
Browse files Browse the repository at this point in the history
Signed-off-by: Ville Aikas <vaikas@chainguard.dev>
  • Loading branch information
vaikas committed Apr 21, 2022
1 parent 3b87836 commit 12cd3d1
Showing 1 changed file with 37 additions and 37 deletions.
74 changes: 37 additions & 37 deletions test/testdata/cosigned/valid/valid-policy-regex.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,51 +26,51 @@ spec:
secretRef:
name: ca-cert-secret
namespace: some-namespacemak
- keyless:
name: "keyless signatures"
- name: "keyless signatures"
keyless:
identities:
- issuer: "issue-details"
subject: "subject-details"
- keyless:
name: "keyless attestations"
- name: "keyless attestations"
keyless:
identities:
- issuer: "issue-details"
subject: "subject-details"
attestations:
- name: custom-predicate-type-validation
predicateType: "cosign.sigstore.dev/attestation/v1"
policy:
type: cue
data: |
import "time"
before: time.Parse(time.RFC3339, "2049-10-09T17:10:27Z")
predicateType: "cosign.sigstore.dev/attestation/v1"
predicate: {
Timestamp: <before
attestations:
- name: custom-predicate-type-validation
predicateType: custom
policy:
type: cue
data: |
import "time"
before: time.Parse(time.RFC3339, "2049-10-09T17:10:27Z")
predicateType: "cosign.sigstore.dev/attestation/v1"
predicate: {
Timestamp: <before
}
- name: vuln-predicate-type-validation
predicateType: vuln
policy:
type: cue
data: |
import "time"
before: time.Parse(time.RFC3339, "2022-04-15T17:10:27Z")
after: time.Parse(time.RFC3339, "2022-03-09T17:10:27Z")
predicateType: "cosign.sigstore.dev/attestation/vuln/v1"
predicate: {
invocation: {
uri: "invocation.example.com/cosign-testing"
}
scanner: {
uri: "fakescanner.example.com/cosign-testing"
}
- name: vuln-predicate-type-validation
predicateType: vuln
policy:
type: cue
data: |
import "time"
before: time.Parse(time.RFC3339, "2022-04-15T17:10:27Z")
after: time.Parse(time.RFC3339, "2022-03-09T17:10:27Z")
predicateType: "cosign.sigstore.dev/attestation/vuln/v1"
predicate: {
invocation: {
uri: "invocation.example.com/cosign-testing"
}
scanner: {
uri: "fakescanner.example.com/cosign-testing"
}
metadata: {
scanStartedOn: <before
scanStartedOn: >after
scanFinishedOn: <before
scanFinishedOn: >after
}
metadata: {
scanStartedOn: <before
scanStartedOn: >after
scanFinishedOn: <before
scanFinishedOn: >after
}
}
- keyless:
identities:
- issuer: "issue-details1"
Expand Down

0 comments on commit 12cd3d1

Please sign in to comment.