diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8f8db00..234ec1f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -30,7 +30,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Install dependencies - uses: kubewarden/github-actions/policy-gh-action-dependencies@v3.1.19 + uses: kubewarden/github-actions/policy-gh-action-dependencies@v3.1.20 - uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 with: # until https://github.com/actions/checkout/pull/579 is released @@ -51,7 +51,7 @@ jobs: shell: bash - name: Check that artifacthub-pkg.yml is up-to-date if: ${{ inputs.artifacthub }} - uses: kubewarden/github-actions/check-artifacthub@v3.1.19 + uses: kubewarden/github-actions/check-artifacthub@v3.1.20 with: version: ${{ steps.calculate-version.outputs.version }} - name: Build policy @@ -87,7 +87,7 @@ jobs: run: | make e2e-tests - name: Release - uses: kubewarden/github-actions/policy-release@v3.1.19 + uses: kubewarden/github-actions/policy-release@v3.1.20 with: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} oci-target: ghcr.io/${{ github.repository_owner }}/policies/container-resources @@ -104,4 +104,4 @@ jobs: steps: - name: Push artifacthub files to artifacthub branch - uses: kubewarden/github-actions/push-artifacthub@v3.1.19 + uses: kubewarden/github-actions/push-artifacthub@v3.1.20 diff --git a/.github/workflows/reusable-test-policy-go.yml b/.github/workflows/reusable-test-policy-go.yml index 9fe772a..c458aa3 100644 --- a/.github/workflows/reusable-test-policy-go.yml +++ b/.github/workflows/reusable-test-policy-go.yml @@ -29,7 +29,7 @@ jobs: steps: - uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 - name: Install dependencies - uses: kubewarden/github-actions/policy-gh-action-dependencies@v3.1.19 + uses: kubewarden/github-actions/policy-gh-action-dependencies@v3.1.20 - name: Install patched tinygo shell: bash run: | @@ -71,12 +71,12 @@ jobs: # until https://github.com/actions/checkout/pull/579 is released fetch-depth: 0 - name: Install kwctl - uses: kubewarden/github-actions/kwctl-installer@v3.1.19 + uses: kubewarden/github-actions/kwctl-installer@v3.1.20 - id: calculate-version run: echo "version=$(git describe --tags --abbrev=0 | cut -c2-)" >> $GITHUB_OUTPUT shell: bash - name: Check that artifacthub-pkg.yml is up-to-date - uses: kubewarden/github-actions/check-artifacthub@v3.1.19 + uses: kubewarden/github-actions/check-artifacthub@v3.1.20 with: version: ${{ steps.calculate-version.outputs.version }} check_version: false # must match a git tag that hasn't been created yet, so let's ignore until then diff --git a/go.mod b/go.mod index f384dcf..633084f 100644 --- a/go.mod +++ b/go.mod @@ -1,13 +1,15 @@ module github.com/kubewarden/container-resources-policy -go 1.21 +go 1.22 + +toolchain go1.22.4 require ( github.com/francoispqt/onelog v0.0.0-20190306043706-8c2bb31b10a4 github.com/google/go-cmp v0.6.0 github.com/google/gofuzz v1.2.0 github.com/kubewarden/k8s-objects v1.29.0-kw1 - github.com/kubewarden/policy-sdk-go v0.8.0 + github.com/kubewarden/policy-sdk-go v0.9.0 github.com/spf13/pflag v1.0.5 github.com/wapc/wapc-guest-tinygo v0.3.3 gopkg.in/inf.v0 v0.9.1 diff --git a/go.sum b/go.sum index f69402b..2e675a8 100644 --- a/go.sum +++ b/go.sum @@ -12,6 +12,8 @@ github.com/kubewarden/k8s-objects v1.29.0-kw1 h1:bVQ2WL1ROqApYmHQJ/yxrs3tssfzzal github.com/kubewarden/k8s-objects v1.29.0-kw1/go.mod h1:EMF+Hr26oDR4yQkWJAQpl0M0Ek5ioNXlCswjGZO0G2U= 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=