From d0ff46b8a84a1caecbdb216d9cd49471a6d31bf1 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 10 Jun 2024 00:17:30 +0000 Subject: [PATCH] fix(deps): update all non-major dependencies --- .github/workflows/release.yml | 4 ++-- .github/workflows/test.yml | 2 +- go.mod | 6 +++--- go.sum | 2 ++ vendor/github.com/kubewarden/policy-sdk-go/.mockery.yaml | 8 ++++++++ vendor/github.com/kubewarden/policy-sdk-go/Makefile | 4 ++-- vendor/github.com/kubewarden/policy-sdk-go/README.md | 1 + vendor/modules.txt | 4 ++-- 8 files changed, 21 insertions(+), 10 deletions(-) create mode 100644 vendor/github.com/kubewarden/policy-sdk-go/.mockery.yaml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 146bfcb..8f2ea4e 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.19 + uses: kubewarden/github-actions/.github/workflows/reusable-test-policy-go.yml@v3.1.20 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.19 + uses: kubewarden/github-actions/.github/workflows/reusable-release-policy-go.yml@v3.1.20 with: oci-target: ghcr.io/${{ github.repository_owner }}/policies/sysctl-psp diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index bfbbcda..653a3e1 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.19 + uses: kubewarden/github-actions/.github/workflows/reusable-test-policy-go.yml@v3.1.20 diff --git a/go.mod b/go.mod index 75727c3..dfef9c5 100644 --- a/go.mod +++ b/go.mod @@ -1,14 +1,14 @@ module github.com/kubewarden/go-policy-template -go 1.21 +go 1.22 -toolchain go1.22.3 +toolchain go1.22.4 require ( github.com/deckarep/golang-set/v2 v2.6.0 github.com/francoispqt/onelog v0.0.0-20190306043706-8c2bb31b10a4 github.com/kubewarden/gjson v1.7.2 - github.com/kubewarden/policy-sdk-go v0.8.0 + github.com/kubewarden/policy-sdk-go v0.9.0 github.com/wapc/wapc-guest-tinygo v0.3.3 ) diff --git a/go.sum b/go.sum index ec181ff..ff285bb 100644 --- a/go.sum +++ b/go.sum @@ -32,6 +32,8 @@ github.com/kubewarden/policy-sdk-go v0.7.0 h1:quNOrqtZRgLHpknoIWl0yDWDK8xJ/hDtP8 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/policy-sdk-go v0.9.0 h1:tS9aMtjkUj04WJ0xjO3o0jSGvtj/T8rGr4mn3DPx5Fo= +github.com/kubewarden/policy-sdk-go v0.9.0/go.mod h1:4Yg/Wpxnt7p4Ps68hBfnK8qoGURM5MJaq67Kjao2smY= 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/.mockery.yaml b/vendor/github.com/kubewarden/policy-sdk-go/.mockery.yaml new file mode 100644 index 0000000..2f8d4a0 --- /dev/null +++ b/vendor/github.com/kubewarden/policy-sdk-go/.mockery.yaml @@ -0,0 +1,8 @@ +with-expecter: true +mock-build-tags: "!wasi && !wasip1" +dir: "{{.InterfaceDir}}/mocks" +outpkg: mocks +packages: + github.com/kubewarden/policy-sdk-go/pkg/capabilities: + interfaces: + WapcClient: diff --git a/vendor/github.com/kubewarden/policy-sdk-go/Makefile b/vendor/github.com/kubewarden/policy-sdk-go/Makefile index 5ee74d2..e54516e 100644 --- a/vendor/github.com/kubewarden/policy-sdk-go/Makefile +++ b/vendor/github.com/kubewarden/policy-sdk-go/Makefile @@ -1,5 +1,5 @@ # Run tests -test: fmt vet generate-mocks +test: fmt vet go test ./... -coverprofile cover.out # Run go fmt against code @@ -17,4 +17,4 @@ deps: go get github.com/golangci/golangci-lint/cmd/golangci-lint generate-mocks: - docker run --rm -v ${PWD}:/src -w /src golang:1.20-alpine ./hack/generate-mocks.sh + mockery diff --git a/vendor/github.com/kubewarden/policy-sdk-go/README.md b/vendor/github.com/kubewarden/policy-sdk-go/README.md index 1a1f930..5905432 100644 --- a/vendor/github.com/kubewarden/policy-sdk-go/README.md +++ b/vendor/github.com/kubewarden/policy-sdk-go/README.md @@ -1,3 +1,4 @@ +[![Stable](https://img.shields.io/badge/status-stable-brightgreen?style=for-the-badge)](https://github.com/kubewarden/community/blob/main/REPOSITORIES.md#stable) [![GoDoc](https://godoc.org/github.com/kubewarden/policy-sdk-go?status.svg)](https://godoc.org/github.com/kubewarden/policy-sdk-go) > Don't forget to take a look at [Kubewarden's official documentation](https://docs.kubewarden.io). diff --git a/vendor/modules.txt b/vendor/modules.txt index 86bdadd..1e42faf 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -22,8 +22,8 @@ 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.8.0 -## explicit; go 1.21 +# github.com/kubewarden/policy-sdk-go v0.9.0 +## explicit; go 1.22 github.com/kubewarden/policy-sdk-go github.com/kubewarden/policy-sdk-go/constants github.com/kubewarden/policy-sdk-go/protocol