diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5c7cfa4..281e9a7 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.1.16 + uses: kubewarden/github-actions/.github/workflows/reusable-test-policy-go.yml@v3.1.17 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.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/safe-labels 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 8a47454..45441e7 100644 --- a/go.mod +++ b/go.mod @@ -9,7 +9,7 @@ replace github.com/go-openapi/strfmt => github.com/kubewarden/strfmt v0.1.3 require ( github.com/deckarep/golang-set/v2 v2.6.0 github.com/kubewarden/gjson v1.7.2 - 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 1c54274..04f655f 100644 --- a/go.sum +++ b/go.sum @@ -27,6 +27,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 bece874..ab764ee 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