Skip to content

Commit

Permalink
Merge pull request #827 from flavio/fix-policies-yml-parsing
Browse files Browse the repository at this point in the history
fix policies yml parsing
  • Loading branch information
flavio authored Jul 17, 2024
2 parents 1677586 + c2297bf commit 9c0ce5f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions policies.yml.example
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,22 @@ psp-capabilities:
required_drop_capabilities: ["KILL"]
pod-image-signatures: # policy group
policies:
- name: sigstore_pgp
sigstore_pgp:
url: ghcr.io/kubewarden/policies/verify-image-signatures:v0.2.8
settings:
signatures:
- image: "*"
pubKeys:
- "-----BEGIN PUBLIC KEY-----xxxxx-----END PUBLIC KEY-----"
- "-----BEGIN PUBLIC KEY-----xxxxx-----END PUBLIC KEY-----"
- name: sigstore_gh_action
sigstore_gh_action:
url: ghcr.io/kubewarden/policies/verify-image-signatures:v0.2.8
settings:
signatures:
- image: "*"
githubActions:
owner: "kubewarden"
- name: reject_latest_tag
reject_latest_tag:
url: ghcr.io/kubewarden/policies/trusted-repos-policy:v0.1.12
settings:
tags:
Expand Down
2 changes: 1 addition & 1 deletion src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ impl PolicyGroupMember {

/// Describes a policy that can be either an individual policy or a group policy.
#[derive(Deserialize, Debug, Clone)]
#[serde(deny_unknown_fields, untagged, rename_all = "camelCase")]
#[serde(untagged, rename_all = "camelCase")]
pub enum PolicyOrPolicyGroup {
/// An individual policy
Policy {
Expand Down

0 comments on commit 9c0ce5f

Please sign in to comment.