From d654dcd793a8baa3000a1a11bbcc489e1d8cb62f Mon Sep 17 00:00:00 2001 From: Jonny Stoten Date: Fri, 21 Jun 2024 11:33:31 +0100 Subject: [PATCH 1/2] Always run workflow on PRs --- .github/workflows/workflow.yaml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.github/workflows/workflow.yaml b/.github/workflows/workflow.yaml index 93967ee..e278fcc 100644 --- a/.github/workflows/workflow.yaml +++ b/.github/workflows/workflow.yaml @@ -7,10 +7,6 @@ on: branches: - main pull_request: - paths-ignore: - - "**.md" - branches: - - main permissions: contents: read From d60806b37f8bebacc8ad6d08556c36077ce5b372 Mon Sep 17 00:00:00 2001 From: Jonny Stoten Date: Fri, 21 Jun 2024 11:40:12 +0100 Subject: [PATCH 2/2] Fix expected error string --- test/bats/test.bats | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/bats/test.bats b/test/bats/test.bats index 683e3f3..72bfdff 100644 --- a/test/bats/test.bats +++ b/test/bats/test.bats @@ -37,7 +37,7 @@ teardown_file() { run kubectl run nginx --image=nginx -n test --dry-run=server # should deny pod admission if the image doesn't pass policy assert_failure - assert_match 'admit: false' "${output}" + assert_match 'type: missing_attestation' "${output}" } # TODO: write mutating webhook policy