diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 97ff3f9..92e026b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -10,7 +10,7 @@ name: Release policy jobs: test: name: run tests and linters - uses: kubewarden/github-actions/.github/workflows/reusable-test-policy-go.yml@v3.1.16 + uses: kubewarden/github-actions/.github/workflows/reusable-test-policy-go.yml@v3.1.17 release: needs: test @@ -22,6 +22,6 @@ jobs: # Required by cosign keyless signing id-token: write - uses: kubewarden/github-actions/.github/workflows/reusable-release-policy-go.yml@v3.1.16 + uses: kubewarden/github-actions/.github/workflows/reusable-release-policy-go.yml@v3.1.17 with: oci-target: ghcr.io/${{ github.repository_owner }}/policies/policy-name #FIXME diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 5a38196..c751a0d 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.1.16 + uses: kubewarden/github-actions/.github/workflows/reusable-test-policy-go.yml@v3.1.17 diff --git a/go.mod b/go.mod index 4d68de0..527e748 100644 --- a/go.mod +++ b/go.mod @@ -7,7 +7,7 @@ toolchain go1.21.6 require ( github.com/francoispqt/onelog v0.0.0-20190306043706-8c2bb31b10a4 github.com/kubewarden/k8s-objects v1.29.0-kw1 - github.com/kubewarden/policy-sdk-go v0.7.0 + github.com/kubewarden/policy-sdk-go v0.8.0 github.com/wapc/wapc-guest-tinygo v0.3.3 ) diff --git a/go.sum b/go.sum index 0e4bdb1..9b569a7 100644 --- a/go.sum +++ b/go.sum @@ -10,6 +10,8 @@ github.com/kubewarden/policy-sdk-go v0.6.0 h1:f7RL+hkcjt1g5/4JmUU+itzsdMNs5rFJT7 github.com/kubewarden/policy-sdk-go v0.6.0/go.mod h1:C8sUX4FYhbP69cvQfPLmIvAJhVHQyg1qaq9EynOn8a0= github.com/kubewarden/policy-sdk-go v0.7.0 h1:quNOrqtZRgLHpknoIWl0yDWDK8xJ/hDtP8M40HVDPmc= github.com/kubewarden/policy-sdk-go v0.7.0/go.mod h1:wq/jwnVOpSaETu/n9DW0ePbeoUdoqYTEzlNKmZGaPIM= +github.com/kubewarden/policy-sdk-go v0.8.0 h1:4SR6UeKLBQ+UkwohuMqYw2lPKgqgF5Ifdw7tFNjQwiI= +github.com/kubewarden/policy-sdk-go v0.8.0/go.mod h1:gjYdcErABXti/dxoNW2PceSwy4+/X+o/wuLwWHZCoNU= github.com/kubewarden/strfmt v0.1.3 h1:bb+2rbotioROjCkziSt+hqnHXzOlumN94NxDKdV2kPI= github.com/kubewarden/strfmt v0.1.3/go.mod h1:DXoaaIYwqW1LyyRoMeyxfHUU+VUSTNFdj38juCXfRzs= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= diff --git a/vendor/github.com/kubewarden/policy-sdk-go/constants/constants.go b/vendor/github.com/kubewarden/policy-sdk-go/constants/constants.go index 2cbb52a..3e4a6b5 100644 --- a/vendor/github.com/kubewarden/policy-sdk-go/constants/constants.go +++ b/vendor/github.com/kubewarden/policy-sdk-go/constants/constants.go @@ -4,4 +4,11 @@ const ( // ProtocolVersion is the version of the protocol used by the // Kubewarden waPC host and guest to exchange information ProtocolVersion = "v1" + // These two media types are manifests media types that the + // oci-distribution accepts when fetching images manifests. But they + // are not present in the open containers go lib used in the SDK. + // Therefore, we need to check for them as well in in the code used to + // fetch and parse the OCI image manifests. + ImageManifestListMediaType = "application/vnd.docker.distribution.manifest.list.v2+json" + ImageManifestMediaType = "application/vnd.docker.distribution.manifest.v2+json" ) diff --git a/vendor/modules.txt b/vendor/modules.txt index 82db8a6..d0b1980 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -16,7 +16,7 @@ github.com/kubewarden/k8s-objects/apimachinery/pkg/api/resource github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1 github.com/kubewarden/k8s-objects/apimachinery/pkg/runtime/schema github.com/kubewarden/k8s-objects/apimachinery/pkg/util/intstr -# github.com/kubewarden/policy-sdk-go v0.7.0 +# github.com/kubewarden/policy-sdk-go v0.8.0 ## explicit; go 1.21 github.com/kubewarden/policy-sdk-go github.com/kubewarden/policy-sdk-go/constants