Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: bump chainsaw to v0.2.3 #1029

Merged
merged 5 commits into from
May 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ jobs:
set -e
kubectl apply -f ./.chainsaw/crds
- name: Install Chainsaw
uses: kyverno/action-install-chainsaw@995cddaee7702e849270b84fa44cdcebe7462da8 # v0.1.9
uses: kyverno/action-install-chainsaw@ef2517389320aae0fd7c067aa14b060eef08b76d # v0.2.3
- name: Test with Chainsaw
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ metadata:
creationTimestamp: null
name: allowed-annotations
spec:
# disable templating because it can cause issues with CEL expressions
template: false
steps:
- name: step-01
try:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ metadata:
creationTimestamp: null
name: allowed-pod-priorities
spec:
# disable templating because it can cause issues with CEL expressions
template: false
steps:
- name: step-01
try:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ metadata:
creationTimestamp: null
name: block-ephemeral-containers
spec:
# disable templating because it can cause issues with CEL expressions
template: false
steps:
- name: step-01
try:
Expand Down
2 changes: 2 additions & 0 deletions other-cel/check-env-vars/.chainsaw-test/chainsaw-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ metadata:
creationTimestamp: null
name: check-env-vars
spec:
# disable templating because it can cause issues with CEL expressions
template: false
steps:
- name: step-01
try:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
# yaml-language-server: $schema=https://raw.githubusercontent.com/kyverno/chainsaw/main/.schemas/json/test-chainsaw-v1alpha1.json
apiVersion: chainsaw.kyverno.io/v1alpha1
kind: Test
metadata:
name: check-service-accounts
spec:
# disable templating because it can cause issues with CEL expressions
template: false
steps:
- name: step-01
try:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ metadata:
creationTimestamp: null
name: deny-secret-service-account-token-type
spec:
# disable templating because it can cause issues with CEL expressions
template: false
steps:
- name: step-01
try:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ metadata:
creationTimestamp: null
name: disallow-all-secrets
spec:
# disable templating because it can cause issues with CEL expressions
template: false
steps:
- name: step-01
try:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ metadata:
creationTimestamp: null
name: disallow-localhost-services
spec:
# disable templating because it can cause issues with CEL expressions
template: false
steps:
- name: step-01
try:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ metadata:
creationTimestamp: null
name: disallow-secrets-from-env-vars
spec:
# disable templating because it can cause issues with CEL expressions
template: false
steps:
- name: step-01
try:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ metadata:
creationTimestamp: null
name: docker-socket-requires-label
spec:
# disable templating because it can cause issues with CEL expressions
template: false
steps:
- name: step-01
try:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ metadata:
creationTimestamp: null
name: enforce-pod-duration
spec:
# disable templating because it can cause issues with CEL expressions
template: false
steps:
- name: step-01
try:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ metadata:
creationTimestamp: null
name: ensure-probes-different
spec:
# disable templating because it can cause issues with CEL expressions
template: false
steps:
- name: step-01
try:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ metadata:
creationTimestamp: null
name: ensure-readonly-hostpath
spec:
# disable templating because it can cause issues with CEL expressions
template: false
steps:
- name: step-01
try:
Expand Down
2 changes: 2 additions & 0 deletions other-cel/forbid-cpu-limits/.chainsaw-test/chainsaw-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ metadata:
creationTimestamp: null
name: forbid-cpu-limits
spec:
# disable templating because it can cause issues with CEL expressions
template: false
steps:
- name: step-01
try:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ metadata:
creationTimestamp: null
name: imagepullpolicy-always
spec:
# disable templating because it can cause issues with CEL expressions
template: false
steps:
- name: step-01
try:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ metadata:
creationTimestamp: null
name: ingress-host-match-tls
spec:
# disable templating because it can cause issues with CEL expressions
template: false
steps:
- name: step-01
try:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ metadata:
creationTimestamp: null
name: limit-containers-per-pod
spec:
# disable templating because it can cause issues with CEL expressions
template: false
steps:
- name: step-01
try:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ metadata:
creationTimestamp: null
name: limit-hostpath-type-pv
spec:
# disable templating because it can cause issues with CEL expressions
template: false
steps:
- name: step-01
try:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ metadata:
creationTimestamp: null
name: memory-requests-equal-limits
spec:
# disable templating because it can cause issues with CEL expressions
template: false
steps:
- name: step-01
try:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ metadata:
creationTimestamp: null
name: metadata-match-regex
spec:
# disable templating because it can cause issues with CEL expressions
template: false
steps:
- name: step-01
try:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ metadata:
creationTimestamp: null
name: pdb-maxunavailable
spec:
# disable templating because it can cause issues with CEL expressions
template: false
steps:
- name: step-01
try:
Expand Down
2 changes: 2 additions & 0 deletions other-cel/prevent-bare-pods/.chainsaw-test/chainsaw-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ metadata:
creationTimestamp: null
name: prevent-naked-pods
spec:
# disable templating because it can cause issues with CEL expressions
template: false
steps:
- name: step-01
try:
Expand Down
2 changes: 2 additions & 0 deletions other-cel/prevent-cr8escape/.chainsaw-test/chainsaw-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ metadata:
creationTimestamp: null
name: prevent-cr8escape
spec:
# disable templating because it can cause issues with CEL expressions
template: false
steps:
- name: step-01
try:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ metadata:
creationTimestamp: null
name: disallow-capabilities
spec:
# disable templating because it can cause issues with CEL expressions
template: false
steps:
- name: step-01
try:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ metadata:
creationTimestamp: null
name: disallow-host-namespaces
spec:
# disable templating because it can cause issues with CEL expressions
template: false
steps:
- name: step-01
try:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ metadata:
creationTimestamp: null
name: disallow-host-path
spec:
# disable templating because it can cause issues with CEL expressions
template: false
steps:
- name: step-01
try:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ metadata:
creationTimestamp: null
name: disallow-host-ports-range
spec:
# disable templating because it can cause issues with CEL expressions
template: false
steps:
- name: step-01
try:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ metadata:
creationTimestamp: null
name: disallow-host-ports
spec:
# disable templating because it can cause issues with CEL expressions
template: false
steps:
- name: step-01
try:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ metadata:
creationTimestamp: null
name: disallow-host-process
spec:
# disable templating because it can cause issues with CEL expressions
template: false
steps:
- name: step-01
try:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ metadata:
creationTimestamp: null
name: disallow-privileged-containers
spec:
# disable templating because it can cause issues with CEL expressions
template: false
steps:
- name: step-01
try:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ metadata:
creationTimestamp: null
name: disallow-selinux
spec:
# disable templating because it can cause issues with CEL expressions
template: false
steps:
- name: step-01
try:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ metadata:
creationTimestamp: null
name: restrict-seccomp
spec:
# disable templating because it can cause issues with CEL expressions
template: false
steps:
- name: step-01
try:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ metadata:
creationTimestamp: null
name: restrict-sysctls
spec:
# disable templating because it can cause issues with CEL expressions
template: false
steps:
- name: step-01
try:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ metadata:
creationTimestamp: null
name: disallow-capabilities-strict
spec:
# disable templating because it can cause issues with CEL expressions
template: false
steps:
- name: step-01
try:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ metadata:
creationTimestamp: null
name: disallow-privilege-escalation
spec:
# disable templating because it can cause issues with CEL expressions
template: false
steps:
- name: step-01
try:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ metadata:
creationTimestamp: null
name: require-run-as-non-root-user
spec:
# disable templating because it can cause issues with CEL expressions
template: false
steps:
- name: step-01
try:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ metadata:
creationTimestamp: null
name: require-run-as-nonroot
spec:
# disable templating because it can cause issues with CEL expressions
template: false
steps:
- name: step-01
try:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ metadata:
creationTimestamp: null
name: restrict-seccomp-strict
spec:
# disable templating because it can cause issues with CEL expressions
template: false
steps:
- name: step-01
try:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ metadata:
creationTimestamp: null
name: restrict-volume-types
spec:
# disable templating because it can cause issues with CEL expressions
template: false
steps:
- name: step-01
try:
Expand Down
Loading