diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index be83e16..1967271 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -11,7 +11,7 @@ jobs: test: name: run tests and linters - uses: kubewarden/github-actions/.github/workflows/reusable-test-policy-go.yml@v3.2.0 + uses: kubewarden/github-actions/.github/workflows/reusable-test-policy-go.yml@v3.3.2 release: needs: test @@ -23,6 +23,6 @@ jobs: # Required by cosign keyless signing id-token: write - uses: kubewarden/github-actions/.github/workflows/reusable-release-policy-go.yml@v3.2.0 + uses: kubewarden/github-actions/.github/workflows/reusable-release-policy-go.yml@v3.3.2 with: oci-target: ghcr.io/${{ github.repository_owner }}/policies/safe-labels diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b022697..b325061 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -3,4 +3,4 @@ name: Continuous integration jobs: test: name: run tests and linters - uses: kubewarden/github-actions/.github/workflows/reusable-test-policy-go.yml@v3.2.0 + uses: kubewarden/github-actions/.github/workflows/reusable-test-policy-go.yml@v3.3.2 diff --git a/Makefile b/Makefile index 5a33238..5c578f5 100644 --- a/Makefile +++ b/Makefile @@ -8,7 +8,7 @@ policy.wasm: $(SOURCE_FILES) go.mod go.sum --rm \ -e GOFLAGS="-buildvcs=false" \ -v ${PWD}:/src \ - -w /src tinygo/tinygo:0.28.1 \ + -w /src tinygo/tinygo:0.33.0 \ tinygo build -o policy.wasm -target=wasi -no-debug . artifacthub-pkg.yml: metadata.yml go.mod diff --git a/e2e.bats b/e2e.bats index f37791d..5dbb1b6 100644 --- a/e2e.bats +++ b/e2e.bats @@ -85,7 +85,6 @@ # settings validation fails [ "$status" -eq 1 ] - [ $(expr "$output" : '.*valid.*false') -ne 0 ] [ $(expr "$output" : ".*Provided settings are not valid: These labels cannot be constrained and denied at the same time: cc-center.*") -ne 0 ] } @@ -99,7 +98,6 @@ # settings validation fails [ "$status" -eq 1 ] - [ $(expr "$output" : '.*valid.*false') -ne 0 ] [ $(expr "$output" : ".*Provided settings are not valid: These labels cannot be mandatory and denied at the same time: cc-center.*") -ne 0 ] } @@ -113,6 +111,5 @@ # settings validation fails [ "$status" -eq 1 ] - [ $(expr "$output" : '.*valid.*false') -ne 0 ] [ $(expr "$output" : ".*Provided settings are not valid: error parsing regexp: missing closing ]: `[12$`.*") -ne 0 ] } diff --git a/go.mod b/go.mod index 27ad037..3ecc492 100644 --- a/go.mod +++ b/go.mod @@ -2,7 +2,7 @@ module github.com/kubewarden/safe-labels-policy go 1.22 -toolchain go1.22.4 +toolchain go1.23.0 replace github.com/go-openapi/strfmt => github.com/kubewarden/strfmt v0.1.3