From c1ef85e869a374f43b7b1c5bc0736b87a79f3416 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Cuadrado=20Juan?= Date: Fri, 20 Dec 2024 13:07:13 +0100 Subject: [PATCH 1/2] fix: Support repos where there's no tag at all MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `version` must be always set even if there's no tags. Set a bogus `version`. Signed-off-by: Víctor Cuadrado Juan --- .../reusable-release-policy-assemblyscript.yml | 14 +++++++++----- .../workflows/reusable-release-policy-go-wasi.yml | 14 +++++++++----- .github/workflows/reusable-release-policy-go.yml | 14 +++++++++----- .github/workflows/reusable-release-policy-rego.yml | 14 +++++++++----- .github/workflows/reusable-release-policy-rust.yml | 14 +++++++++----- .../workflows/reusable-release-policy-swift.yml | 14 +++++++++----- .../reusable-test-policy-assemblyscript.yml | 14 +++++++++----- .github/workflows/reusable-test-policy-go-wasi.yml | 14 +++++++++----- .github/workflows/reusable-test-policy-go.yml | 14 +++++++++----- .github/workflows/reusable-test-policy-rego.yml | 14 +++++++++----- .github/workflows/reusable-test-policy-rust.yml | 14 +++++++++----- .github/workflows/reusable-test-policy-swift.yml | 14 +++++++++----- 12 files changed, 108 insertions(+), 60 deletions(-) diff --git a/.github/workflows/reusable-release-policy-assemblyscript.yml b/.github/workflows/reusable-release-policy-assemblyscript.yml index 7bfa8b3..1044281 100644 --- a/.github/workflows/reusable-release-policy-assemblyscript.yml +++ b/.github/workflows/reusable-release-policy-assemblyscript.yml @@ -34,11 +34,15 @@ jobs: else # Triggered via branch, version is not checked in artifacthub. # Still, `make artifacthub-pkg.yml` needs a proper semver string. - # - # Use most recent tag with the number of additional commits on top - # of the tagged object & last commit hash (eg. v0.1.11-3-g8a36322), - # without the `v` prefix. - version=$(git describe --tags | cut -c2-) + if [ $(git describe --tags) ]; then + # Tag exists, use most recent tag with the number of additional + # commits on top of the tagged object & last commit hash (eg. + # v0.1.11-3-g8a36322), without the `v` prefix. + version=$(git describe --tags | cut -c2-) + else + # Tag doesn't exist, provide bogus version + version="0.0.0-$(git describe --always)-unreleased" + fi fi echo "version=$version" >> $GITHUB_OUTPUT - name: Check that artifacthub-pkg.yml is up-to-date diff --git a/.github/workflows/reusable-release-policy-go-wasi.yml b/.github/workflows/reusable-release-policy-go-wasi.yml index 2f3f250..7fdacff 100644 --- a/.github/workflows/reusable-release-policy-go-wasi.yml +++ b/.github/workflows/reusable-release-policy-go-wasi.yml @@ -32,11 +32,15 @@ jobs: else # Triggered via branch, version is not checked in artifacthub. # Still, `make artifacthub-pkg.yml` needs a proper semver string. - # - # Use most recent tag with the number of additional commits on top - # of the tagged object & last commit hash (eg. v0.1.11-3-g8a36322), - # without the `v` prefix. - version=$(git describe --tags | cut -c2-) + if [ $(git describe --tags) ]; then + # Tag exists, use most recent tag with the number of additional + # commits on top of the tagged object & last commit hash (eg. + # v0.1.11-3-g8a36322), without the `v` prefix. + version=$(git describe --tags | cut -c2-) + else + # Tag doesn't exist, provide bogus version + version="0.0.0-$(git describe --always)-unreleased" + fi fi echo "version=$version" >> $GITHUB_OUTPUT - name: Check that artifacthub-pkg.yml is up-to-date diff --git a/.github/workflows/reusable-release-policy-go.yml b/.github/workflows/reusable-release-policy-go.yml index 709ecbe..905eed9 100644 --- a/.github/workflows/reusable-release-policy-go.yml +++ b/.github/workflows/reusable-release-policy-go.yml @@ -32,11 +32,15 @@ jobs: else # Triggered via branch, version is not checked in artifacthub. # Still, `make artifacthub-pkg.yml` needs a proper semver string. - # - # Use most recent tag with the number of additional commits on top - # of the tagged object & last commit hash (eg. v0.1.11-3-g8a36322), - # without the `v` prefix. - version=$(git describe --tags | cut -c2-) + if [ $(git describe --tags) ]; then + # Tag exists, use most recent tag with the number of additional + # commits on top of the tagged object & last commit hash (eg. + # v0.1.11-3-g8a36322), without the `v` prefix. + version=$(git describe --tags | cut -c2-) + else + # Tag doesn't exist, provide bogus version + version="0.0.0-$(git describe --always)-unreleased" + fi fi echo "version=$version" >> $GITHUB_OUTPUT - name: Check that artifacthub-pkg.yml is up-to-date diff --git a/.github/workflows/reusable-release-policy-rego.yml b/.github/workflows/reusable-release-policy-rego.yml index 3708389..ce67f6d 100644 --- a/.github/workflows/reusable-release-policy-rego.yml +++ b/.github/workflows/reusable-release-policy-rego.yml @@ -49,11 +49,15 @@ jobs: else # Triggered via branch, version is not checked in artifacthub. # Still, `make artifacthub-pkg.yml` needs a proper semver string. - # - # Use most recent tag with the number of additional commits on top - # of the tagged object & last commit hash (eg. v0.1.11-3-g8a36322), - # without the `v` prefix. - version=$(git describe --tags | cut -c2-) + if [ $(git describe --tags) ]; then + # Tag exists, use most recent tag with the number of additional + # commits on top of the tagged object & last commit hash (eg. + # v0.1.11-3-g8a36322), without the `v` prefix. + version=$(git describe --tags | cut -c2-) + else + # Tag doesn't exist, provide bogus version + version="0.0.0-$(git describe --always)-unreleased" + fi fi fi echo "version=$version" >> $GITHUB_OUTPUT diff --git a/.github/workflows/reusable-release-policy-rust.yml b/.github/workflows/reusable-release-policy-rust.yml index c6faec2..22d3cf1 100644 --- a/.github/workflows/reusable-release-policy-rust.yml +++ b/.github/workflows/reusable-release-policy-rust.yml @@ -32,11 +32,15 @@ jobs: else # Triggered via branch, version is not checked in artifacthub. # Still, `make artifacthub-pkg.yml` needs a proper semver string. - # - # Use most recent tag with the number of additional commits on top - # of the tagged object & last commit hash (eg. v0.1.11-3-g8a36322), - # without the `v` prefix. - version=$(git describe --tags | cut -c2-) + if [ $(git describe --tags) ]; then + # Tag exists, use most recent tag with the number of additional + # commits on top of the tagged object & last commit hash (eg. + # v0.1.11-3-g8a36322), without the `v` prefix. + version=$(git describe --tags | cut -c2-) + else + # Tag doesn't exist, provide bogus version + version="0.0.0-$(git describe --always)-unreleased" + fi fi echo "version=$version" >> $GITHUB_OUTPUT - name: Check that artifacthub-pkg.yml is up-to-date diff --git a/.github/workflows/reusable-release-policy-swift.yml b/.github/workflows/reusable-release-policy-swift.yml index bef88d8..a3ee89d 100644 --- a/.github/workflows/reusable-release-policy-swift.yml +++ b/.github/workflows/reusable-release-policy-swift.yml @@ -32,11 +32,15 @@ jobs: else # Triggered via branch, version is not checked in artifacthub. # Still, `make artifacthub-pkg.yml` needs a proper semver string. - # - # Use most recent tag with the number of additional commits on top - # of the tagged object & last commit hash (eg. v0.1.11-3-g8a36322), - # without the `v` prefix. - version=$(git describe --tags | cut -c2-) + if [ $(git describe --tags) ]; then + # Tag exists, use most recent tag with the number of additional + # commits on top of the tagged object & last commit hash (eg. + # v0.1.11-3-g8a36322), without the `v` prefix. + version=$(git describe --tags | cut -c2-) + else + # Tag doesn't exist, provide bogus version + version="0.0.0-$(git describe --always)-unreleased" + fi fi echo "version=$version" >> $GITHUB_OUTPUT - name: Check that artifacthub-pkg.yml is up-to-date diff --git a/.github/workflows/reusable-test-policy-assemblyscript.yml b/.github/workflows/reusable-test-policy-assemblyscript.yml index 2d7a395..55d2158 100644 --- a/.github/workflows/reusable-test-policy-assemblyscript.yml +++ b/.github/workflows/reusable-test-policy-assemblyscript.yml @@ -46,11 +46,15 @@ jobs: else # Triggered via branch, version is not checked in artifacthub. # Still, `make artifacthub-pkg.yml` needs a proper semver string. - # - # Use most recent tag with the number of additional commits on top - # of the tagged object & last commit hash (eg. v0.1.11-3-g8a36322), - # without the `v` prefix. - version=$(git describe --tags | cut -c2-) + if [ $(git describe --tags) ]; then + # Tag exists, use most recent tag with the number of additional + # commits on top of the tagged object & last commit hash (eg. + # v0.1.11-3-g8a36322), without the `v` prefix. + version=$(git describe --tags | cut -c2-) + else + # Tag doesn't exist, provide bogus version + version="0.0.0-$(git describe --always)-unreleased" + fi fi echo "version=$version" >> $GITHUB_OUTPUT - name: Check that artifacthub-pkg.yml is up-to-date diff --git a/.github/workflows/reusable-test-policy-go-wasi.yml b/.github/workflows/reusable-test-policy-go-wasi.yml index 8231a90..5bece35 100644 --- a/.github/workflows/reusable-test-policy-go-wasi.yml +++ b/.github/workflows/reusable-test-policy-go-wasi.yml @@ -69,11 +69,15 @@ jobs: else # Triggered via branch, version is not checked in artifacthub. # Still, `make artifacthub-pkg.yml` needs a proper semver string. - # - # Use most recent tag with the number of additional commits on top - # of the tagged object & last commit hash (eg. v0.1.11-3-g8a36322), - # without the `v` prefix. - version=$(git describe --tags | cut -c2-) + if [ $(git describe --tags) ]; then + # Tag exists, use most recent tag with the number of additional + # commits on top of the tagged object & last commit hash (eg. + # v0.1.11-3-g8a36322), without the `v` prefix. + version=$(git describe --tags | cut -c2-) + else + # Tag doesn't exist, provide bogus version + version="0.0.0-$(git describe --always)-unreleased" + fi fi echo "version=$version" >> $GITHUB_OUTPUT - name: Check that artifacthub-pkg.yml is up-to-date diff --git a/.github/workflows/reusable-test-policy-go.yml b/.github/workflows/reusable-test-policy-go.yml index 6254fdb..a23d4f6 100644 --- a/.github/workflows/reusable-test-policy-go.yml +++ b/.github/workflows/reusable-test-policy-go.yml @@ -69,11 +69,15 @@ jobs: else # Triggered via branch, version is not checked in artifacthub. # Still, `make artifacthub-pkg.yml` needs a proper semver string. - # - # Use most recent tag with the number of additional commits on top - # of the tagged object & last commit hash (eg. v0.1.11-3-g8a36322), - # without the `v` prefix. - version=$(git describe --tags | cut -c2-) + if [ $(git describe --tags) ]; then + # Tag exists, use most recent tag with the number of additional + # commits on top of the tagged object & last commit hash (eg. + # v0.1.11-3-g8a36322), without the `v` prefix. + version=$(git describe --tags | cut -c2-) + else + # Tag doesn't exist, provide bogus version + version="0.0.0-$(git describe --always)-unreleased" + fi fi echo "version=$version" >> $GITHUB_OUTPUT - name: Check that artifacthub-pkg.yml is up-to-date diff --git a/.github/workflows/reusable-test-policy-rego.yml b/.github/workflows/reusable-test-policy-rego.yml index 91876b8..8aa3fdf 100644 --- a/.github/workflows/reusable-test-policy-rego.yml +++ b/.github/workflows/reusable-test-policy-rego.yml @@ -58,11 +58,15 @@ jobs: else # Triggered via branch, version is not checked in artifacthub. # Still, `make artifacthub-pkg.yml` needs a proper semver string. - # - # Use most recent tag with the number of additional commits on top - # of the tagged object & last commit hash (eg. v0.1.11-3-g8a36322), - # without the `v` prefix. - version=$(git describe --tags | cut -c2-) + if [ $(git describe --tags) ]; then + # Tag exists, use most recent tag with the number of additional + # commits on top of the tagged object & last commit hash (eg. + # v0.1.11-3-g8a36322), without the `v` prefix. + version=$(git describe --tags | cut -c2-) + else + # Tag doesn't exist, provide bogus version + version="0.0.0-$(git describe --always)-unreleased" + fi fi fi echo "version=$version" >> $GITHUB_OUTPUT diff --git a/.github/workflows/reusable-test-policy-rust.yml b/.github/workflows/reusable-test-policy-rust.yml index 8ed443f..20bc737 100644 --- a/.github/workflows/reusable-test-policy-rust.yml +++ b/.github/workflows/reusable-test-policy-rust.yml @@ -46,11 +46,15 @@ jobs: else # Triggered via branch, version is not checked in artifacthub. # Still, `make artifacthub-pkg.yml` needs a proper semver string. - # - # Use most recent tag with the number of additional commits on top - # of the tagged object & last commit hash (eg. v0.1.11-3-g8a36322), - # without the `v` prefix. - version=$(git describe --tags | cut -c2-) + if [ $(git describe --tags) ]; then + # Tag exists, use most recent tag with the number of additional + # commits on top of the tagged object & last commit hash (eg. + # v0.1.11-3-g8a36322), without the `v` prefix. + version=$(git describe --tags | cut -c2-) + else + # Tag doesn't exist, provide bogus version + version="0.0.0-$(git describe --always)-unreleased" + fi fi echo "version=$version" >> $GITHUB_OUTPUT - name: Check that artifacthub-pkg.yml is up-to-date diff --git a/.github/workflows/reusable-test-policy-swift.yml b/.github/workflows/reusable-test-policy-swift.yml index 2b14c3b..6185bfb 100644 --- a/.github/workflows/reusable-test-policy-swift.yml +++ b/.github/workflows/reusable-test-policy-swift.yml @@ -40,11 +40,15 @@ jobs: else # Triggered via branch, version is not checked in artifacthub. # Still, `make artifacthub-pkg.yml` needs a proper semver string. - # - # Use most recent tag with the number of additional commits on top - # of the tagged object & last commit hash (eg. v0.1.11-3-g8a36322), - # without the `v` prefix. - version=$(git describe --tags | cut -c2-) + if [ $(git describe --tags) ]; then + # Tag exists, use most recent tag with the number of additional + # commits on top of the tagged object & last commit hash (eg. + # v0.1.11-3-g8a36322), without the `v` prefix. + version=$(git describe --tags | cut -c2-) + else + # Tag doesn't exist, provide bogus version + version="0.0.0-$(git describe --always)-unreleased" + fi fi echo "version=$version" >> $GITHUB_OUTPUT - name: Check that artifacthub-pkg.yml is up-to-date From 2cb122ae16b137e78961feca041729642689fa69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Cuadrado=20Juan?= Date: Fri, 20 Dec 2024 13:13:14 +0100 Subject: [PATCH 2/2] deps: Prepare for v3.4.2 release MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit sed --in-place 's/3\.4\.1/3\.4\.2/' $(find . -maxdepth 3 -name "*.yml") Signed-off-by: Víctor Cuadrado Juan --- .../reusable-release-policy-assemblyscript.yml | 8 ++++---- .github/workflows/reusable-release-policy-go-wasi.yml | 10 +++++----- .github/workflows/reusable-release-policy-go.yml | 10 +++++----- .github/workflows/reusable-release-policy-rego.yml | 10 +++++----- .github/workflows/reusable-release-policy-rust.yml | 10 +++++----- .github/workflows/reusable-release-policy-swift.yml | 8 ++++---- .../workflows/reusable-test-policy-assemblyscript.yml | 4 ++-- .github/workflows/reusable-test-policy-go-wasi.yml | 8 ++++---- .github/workflows/reusable-test-policy-go.yml | 8 ++++---- .github/workflows/reusable-test-policy-rego.yml | 6 +++--- .github/workflows/reusable-test-policy-rust.yml | 8 ++++---- .github/workflows/reusable-test-policy-swift.yml | 4 ++-- policy-gh-action-dependencies/action.yml | 6 +++--- 13 files changed, 50 insertions(+), 50 deletions(-) diff --git a/.github/workflows/reusable-release-policy-assemblyscript.yml b/.github/workflows/reusable-release-policy-assemblyscript.yml index 1044281..f34e530 100644 --- a/.github/workflows/reusable-release-policy-assemblyscript.yml +++ b/.github/workflows/reusable-release-policy-assemblyscript.yml @@ -19,7 +19,7 @@ jobs: NODE_VERSION: 14 steps: - name: Install dependencies - uses: kubewarden/github-actions/policy-gh-action-dependencies@v3.4.1 + uses: kubewarden/github-actions/policy-gh-action-dependencies@v3.4.2 - uses: actions/checkout@v4 with: # until https://github.com/actions/checkout/pull/579 is released @@ -48,7 +48,7 @@ jobs: - name: Check that artifacthub-pkg.yml is up-to-date # skip when releasing :latest from main, versions will not match if: startsWith(github.ref, 'refs/tags/v') && inputs.artifacthub - uses: kubewarden/github-actions/check-artifacthub@v3.4.1 + uses: kubewarden/github-actions/check-artifacthub@v3.4.2 with: version: ${{ steps.calculate-version.outputs.version }} - name: Setup node @@ -71,7 +71,7 @@ jobs: run: | make e2e-tests - name: Release - uses: kubewarden/github-actions/policy-release@v3.4.1 + uses: kubewarden/github-actions/policy-release@v3.4.2 with: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} oci-target: ${{ inputs.oci-target }} @@ -87,4 +87,4 @@ jobs: runs-on: ubuntu-latest steps: - name: Push artifacthub files to artifacthub branch - uses: kubewarden/github-actions/push-artifacthub@v3.4.1 + uses: kubewarden/github-actions/push-artifacthub@v3.4.2 diff --git a/.github/workflows/reusable-release-policy-go-wasi.yml b/.github/workflows/reusable-release-policy-go-wasi.yml index 7fdacff..fc7edfe 100644 --- a/.github/workflows/reusable-release-policy-go-wasi.yml +++ b/.github/workflows/reusable-release-policy-go-wasi.yml @@ -17,7 +17,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Install dependencies - uses: kubewarden/github-actions/policy-gh-action-dependencies@v3.4.1 + uses: kubewarden/github-actions/policy-gh-action-dependencies@v3.4.2 - uses: actions/checkout@v4 with: # until https://github.com/actions/checkout/pull/579 is released @@ -46,16 +46,16 @@ jobs: - name: Check that artifacthub-pkg.yml is up-to-date # skip when releasing :latest from main, versions will not match if: startsWith(github.ref, 'refs/tags/v') && inputs.artifacthub - uses: kubewarden/github-actions/check-artifacthub@v3.4.1 + uses: kubewarden/github-actions/check-artifacthub@v3.4.2 with: version: ${{ steps.calculate-version.outputs.version }} - name: Build and annotate policy - uses: kubewarden/github-actions/policy-build-go-wasi@v3.4.1 + uses: kubewarden/github-actions/policy-build-go-wasi@v3.4.2 - name: Run e2e tests run: | make e2e-tests - name: Release - uses: kubewarden/github-actions/policy-release@v3.4.1 + uses: kubewarden/github-actions/policy-release@v3.4.2 with: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} oci-target: ${{ inputs.oci-target }} @@ -71,4 +71,4 @@ jobs: runs-on: ubuntu-latest steps: - name: Push artifacthub files to artifacthub branch - uses: kubewarden/github-actions/push-artifacthub@v3.4.1 + uses: kubewarden/github-actions/push-artifacthub@v3.4.2 diff --git a/.github/workflows/reusable-release-policy-go.yml b/.github/workflows/reusable-release-policy-go.yml index 905eed9..2dad72f 100644 --- a/.github/workflows/reusable-release-policy-go.yml +++ b/.github/workflows/reusable-release-policy-go.yml @@ -17,7 +17,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Install dependencies - uses: kubewarden/github-actions/policy-gh-action-dependencies@v3.4.1 + uses: kubewarden/github-actions/policy-gh-action-dependencies@v3.4.2 - uses: actions/checkout@v4 with: # until https://github.com/actions/checkout/pull/579 is released @@ -46,16 +46,16 @@ jobs: - name: Check that artifacthub-pkg.yml is up-to-date # skip when releasing :latest from main, versions will not match if: startsWith(github.ref, 'refs/tags/v') && inputs.artifacthub - uses: kubewarden/github-actions/check-artifacthub@v3.4.1 + uses: kubewarden/github-actions/check-artifacthub@v3.4.2 with: version: ${{ steps.calculate-version.outputs.version }} - name: Build and annotate policy - uses: kubewarden/github-actions/policy-build-tinygo@v3.4.1 + uses: kubewarden/github-actions/policy-build-tinygo@v3.4.2 - name: Run e2e tests run: | make e2e-tests - name: Release - uses: kubewarden/github-actions/policy-release@v3.4.1 + uses: kubewarden/github-actions/policy-release@v3.4.2 with: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} oci-target: ${{ inputs.oci-target }} @@ -71,4 +71,4 @@ jobs: runs-on: ubuntu-latest steps: - name: Push artifacthub files to artifacthub branch - uses: kubewarden/github-actions/push-artifacthub@v3.4.1 + uses: kubewarden/github-actions/push-artifacthub@v3.4.2 diff --git a/.github/workflows/reusable-release-policy-rego.yml b/.github/workflows/reusable-release-policy-rego.yml index ce67f6d..084e384 100644 --- a/.github/workflows/reusable-release-policy-rego.yml +++ b/.github/workflows/reusable-release-policy-rego.yml @@ -29,7 +29,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Install dependencies - uses: kubewarden/github-actions/policy-gh-action-dependencies@v3.4.1 + uses: kubewarden/github-actions/policy-gh-action-dependencies@v3.4.2 - uses: actions/checkout@v4 with: # until https://github.com/actions/checkout/pull/579 is released @@ -64,12 +64,12 @@ jobs: - name: Check that artifacthub-pkg.yml is up-to-date # skip when releasing :latest from main, versions will not match if: ${{ inputs.artifacthub && ( ! startsWith(github.ref, 'refs/heads/') ) }} - uses: kubewarden/github-actions/check-artifacthub@v3.4.1 + uses: kubewarden/github-actions/check-artifacthub@v3.4.2 with: version: ${{ steps.calculate-version.outputs.version }} policy-working-dir: ${{ inputs.policy-working-dir }} - name: Install opa - uses: kubewarden/github-actions/opa-installer@v3.4.1 + uses: kubewarden/github-actions/opa-installer@v3.4.2 - uses: actions/checkout@v4 - name: Build policy working-directory: ${{ inputs.policy-working-dir }} @@ -87,7 +87,7 @@ jobs: run: | make e2e-tests - name: Release - uses: kubewarden/github-actions/policy-release@v3.4.1 + uses: kubewarden/github-actions/policy-release@v3.4.2 with: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} oci-target: ${{ inputs.oci-target }} @@ -104,6 +104,6 @@ jobs: runs-on: ubuntu-latest steps: - name: Push artifacthub files to artifacthub branch - uses: kubewarden/github-actions/push-artifacthub@v3.4.1 + uses: kubewarden/github-actions/push-artifacthub@v3.4.2 with: policy-working-dir: ${{ inputs.policy-working-dir }} diff --git a/.github/workflows/reusable-release-policy-rust.yml b/.github/workflows/reusable-release-policy-rust.yml index 22d3cf1..b92cba8 100644 --- a/.github/workflows/reusable-release-policy-rust.yml +++ b/.github/workflows/reusable-release-policy-rust.yml @@ -17,7 +17,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Install dependencies - uses: kubewarden/github-actions/policy-gh-action-dependencies@v3.4.1 + uses: kubewarden/github-actions/policy-gh-action-dependencies@v3.4.2 - uses: actions/checkout@v4 with: # until https://github.com/actions/checkout/pull/579 is released @@ -46,16 +46,16 @@ jobs: - name: Check that artifacthub-pkg.yml is up-to-date # skip when releasing :latest from main, versions will not match if: startsWith(github.ref, 'refs/tags/v') && inputs.artifacthub - uses: kubewarden/github-actions/check-artifacthub@v3.4.1 + uses: kubewarden/github-actions/check-artifacthub@v3.4.2 with: version: ${{ steps.calculate-version.outputs.version }} - name: Build and annotate policy - uses: kubewarden/github-actions/policy-build-rust@v3.4.1 + uses: kubewarden/github-actions/policy-build-rust@v3.4.2 - name: Run e2e tests run: | make e2e-tests - name: Release - uses: kubewarden/github-actions/policy-release@v3.4.1 + uses: kubewarden/github-actions/policy-release@v3.4.2 with: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} oci-target: ${{ inputs.oci-target }} @@ -71,4 +71,4 @@ jobs: runs-on: ubuntu-latest steps: - name: Push artifacthub files to artifacthub branch - uses: kubewarden/github-actions/push-artifacthub@v3.4.1 + uses: kubewarden/github-actions/push-artifacthub@v3.4.2 diff --git a/.github/workflows/reusable-release-policy-swift.yml b/.github/workflows/reusable-release-policy-swift.yml index a3ee89d..ee2cbc3 100644 --- a/.github/workflows/reusable-release-policy-swift.yml +++ b/.github/workflows/reusable-release-policy-swift.yml @@ -17,7 +17,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Install dependencies - uses: kubewarden/github-actions/policy-gh-action-dependencies@v3.4.1 + uses: kubewarden/github-actions/policy-gh-action-dependencies@v3.4.2 - uses: actions/checkout@v4 with: # until https://github.com/actions/checkout/pull/579 is released @@ -46,7 +46,7 @@ jobs: - name: Check that artifacthub-pkg.yml is up-to-date # skip when releasing :latest from main, versions will not match if: startsWith(github.ref, 'refs/tags/v') && inputs.artifacthub - uses: kubewarden/github-actions/check-artifacthub@v3.4.1 + uses: kubewarden/github-actions/check-artifacthub@v3.4.2 with: version: ${{ steps.calculate-version.outputs.version }} - name: install wasm-strip @@ -72,7 +72,7 @@ jobs: run: | make e2e-tests - name: Release - uses: kubewarden/github-actions/policy-release@v3.4.1 + uses: kubewarden/github-actions/policy-release@v3.4.2 with: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} oci-target: ${{ inputs.oci-target }} @@ -88,4 +88,4 @@ jobs: runs-on: ubuntu-latest steps: - name: Push artifacthub files to artifacthub branch - uses: kubewarden/github-actions/push-artifacthub@v3.4.1 + uses: kubewarden/github-actions/push-artifacthub@v3.4.2 diff --git a/.github/workflows/reusable-test-policy-assemblyscript.yml b/.github/workflows/reusable-test-policy-assemblyscript.yml index 55d2158..4955f4e 100644 --- a/.github/workflows/reusable-test-policy-assemblyscript.yml +++ b/.github/workflows/reusable-test-policy-assemblyscript.yml @@ -35,7 +35,7 @@ jobs: # until https://github.com/actions/checkout/pull/579 is released fetch-depth: 0 - name: Install kwctl - uses: kubewarden/github-actions/kwctl-installer@v3.4.1 + uses: kubewarden/github-actions/kwctl-installer@v3.4.2 - id: calculate-version shell: bash run: | @@ -58,7 +58,7 @@ jobs: fi echo "version=$version" >> $GITHUB_OUTPUT - name: Check that artifacthub-pkg.yml is up-to-date - uses: kubewarden/github-actions/check-artifacthub@v3.4.1 + uses: kubewarden/github-actions/check-artifacthub@v3.4.2 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/.github/workflows/reusable-test-policy-go-wasi.yml b/.github/workflows/reusable-test-policy-go-wasi.yml index 5bece35..a19310c 100644 --- a/.github/workflows/reusable-test-policy-go-wasi.yml +++ b/.github/workflows/reusable-test-policy-go-wasi.yml @@ -29,11 +29,11 @@ jobs: steps: - uses: actions/checkout@v4 - name: Install dependencies - uses: kubewarden/github-actions/policy-gh-action-dependencies@v3.4.1 + uses: kubewarden/github-actions/policy-gh-action-dependencies@v3.4.2 - name: Build and annotate policy with: generate-sbom: false - uses: kubewarden/github-actions/policy-build-go-wasi@v3.4.1 + uses: kubewarden/github-actions/policy-build-go-wasi@v3.4.2 - name: Run e2e tests run: make e2e-tests @@ -58,7 +58,7 @@ jobs: # until https://github.com/actions/checkout/pull/579 is released fetch-depth: 0 - name: Install kwctl - uses: kubewarden/github-actions/kwctl-installer@v3.4.1 + uses: kubewarden/github-actions/kwctl-installer@v3.4.2 - id: calculate-version shell: bash run: | @@ -81,7 +81,7 @@ jobs: fi echo "version=$version" >> $GITHUB_OUTPUT - name: Check that artifacthub-pkg.yml is up-to-date - uses: kubewarden/github-actions/check-artifacthub@v3.4.1 + uses: kubewarden/github-actions/check-artifacthub@v3.4.2 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/.github/workflows/reusable-test-policy-go.yml b/.github/workflows/reusable-test-policy-go.yml index a23d4f6..73a84bc 100644 --- a/.github/workflows/reusable-test-policy-go.yml +++ b/.github/workflows/reusable-test-policy-go.yml @@ -29,11 +29,11 @@ jobs: steps: - uses: actions/checkout@v4 - name: Install dependencies - uses: kubewarden/github-actions/policy-gh-action-dependencies@v3.4.1 + uses: kubewarden/github-actions/policy-gh-action-dependencies@v3.4.2 - name: Build and annotate policy with: generate-sbom: false - uses: kubewarden/github-actions/policy-build-tinygo@v3.4.1 + uses: kubewarden/github-actions/policy-build-tinygo@v3.4.2 - name: Run e2e tests run: make e2e-tests @@ -58,7 +58,7 @@ jobs: # until https://github.com/actions/checkout/pull/579 is released fetch-depth: 0 - name: Install kwctl - uses: kubewarden/github-actions/kwctl-installer@v3.4.1 + uses: kubewarden/github-actions/kwctl-installer@v3.4.2 - id: calculate-version shell: bash run: | @@ -81,7 +81,7 @@ jobs: fi echo "version=$version" >> $GITHUB_OUTPUT - name: Check that artifacthub-pkg.yml is up-to-date - uses: kubewarden/github-actions/check-artifacthub@v3.4.1 + uses: kubewarden/github-actions/check-artifacthub@v3.4.2 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/.github/workflows/reusable-test-policy-rego.yml b/.github/workflows/reusable-test-policy-rego.yml index 8aa3fdf..bbacd85 100644 --- a/.github/workflows/reusable-test-policy-rego.yml +++ b/.github/workflows/reusable-test-policy-rego.yml @@ -28,7 +28,7 @@ jobs: steps: - uses: actions/checkout@v4 - name: Install opa - uses: kubewarden/github-actions/opa-installer@v3.4.1 + uses: kubewarden/github-actions/opa-installer@v3.4.2 - name: Run unit tests working-directory: ${{ inputs.policy-working-dir }} run: make test @@ -42,7 +42,7 @@ jobs: # until https://github.com/actions/checkout/pull/579 is released fetch-depth: 0 - name: Install kwctl - uses: kubewarden/github-actions/kwctl-installer@v3.4.1 + uses: kubewarden/github-actions/kwctl-installer@v3.4.2 - id: calculate-version shell: bash run: | @@ -73,7 +73,7 @@ jobs: - name: Check that artifacthub-pkg.yml is up-to-date # only makes sense to run this check if artifacthub-pkg.yml has been # updated for an upcoming release. - uses: kubewarden/github-actions/check-artifacthub@v3.4.1 + uses: kubewarden/github-actions/check-artifacthub@v3.4.2 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/.github/workflows/reusable-test-policy-rust.yml b/.github/workflows/reusable-test-policy-rust.yml index 20bc737..d689b6b 100644 --- a/.github/workflows/reusable-test-policy-rust.yml +++ b/.github/workflows/reusable-test-policy-rust.yml @@ -35,7 +35,7 @@ jobs: # until https://github.com/actions/checkout/pull/579 is released fetch-depth: 0 - name: Install kwctl - uses: kubewarden/github-actions/kwctl-installer@v3.4.1 + uses: kubewarden/github-actions/kwctl-installer@v3.4.2 - id: calculate-version shell: bash run: | @@ -58,7 +58,7 @@ jobs: fi echo "version=$version" >> $GITHUB_OUTPUT - name: Check that artifacthub-pkg.yml is up-to-date - uses: kubewarden/github-actions/check-artifacthub@v3.4.1 + uses: kubewarden/github-actions/check-artifacthub@v3.4.2 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 @@ -94,11 +94,11 @@ jobs: steps: - uses: actions/checkout@v4 - name: Install dependencies - uses: kubewarden/github-actions/policy-gh-action-dependencies@v3.4.1 + uses: kubewarden/github-actions/policy-gh-action-dependencies@v3.4.2 - name: Build and annotate policy with: generate-sbom: false - uses: kubewarden/github-actions/policy-build-rust@v3.4.1 + uses: kubewarden/github-actions/policy-build-rust@v3.4.2 - name: Run e2e tests run: | make e2e-tests diff --git a/.github/workflows/reusable-test-policy-swift.yml b/.github/workflows/reusable-test-policy-swift.yml index 6185bfb..45a3948 100644 --- a/.github/workflows/reusable-test-policy-swift.yml +++ b/.github/workflows/reusable-test-policy-swift.yml @@ -29,7 +29,7 @@ jobs: # until https://github.com/actions/checkout/pull/579 is released fetch-depth: 0 - name: Install kwctl - uses: kubewarden/github-actions/kwctl-installer@v3.4.1 + uses: kubewarden/github-actions/kwctl-installer@v3.4.2 - id: calculate-version shell: bash run: | @@ -52,7 +52,7 @@ jobs: fi echo "version=$version" >> $GITHUB_OUTPUT - name: Check that artifacthub-pkg.yml is up-to-date - uses: kubewarden/github-actions/check-artifacthub@v3.4.1 + uses: kubewarden/github-actions/check-artifacthub@v3.4.2 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/policy-gh-action-dependencies/action.yml b/policy-gh-action-dependencies/action.yml index 7462120..83a9688 100644 --- a/policy-gh-action-dependencies/action.yml +++ b/policy-gh-action-dependencies/action.yml @@ -9,12 +9,12 @@ runs: - name: Install cosign uses: sigstore/cosign-installer@v3 - name: Install kwctl - uses: kubewarden/github-actions/kwctl-installer@v3.4.1 + uses: kubewarden/github-actions/kwctl-installer@v3.4.2 - name: Install bats uses: mig4/setup-bats@v1.2.0 with: bats-version: 1.11.0 - name: Install SBOM generator tool - uses: kubewarden/github-actions/sbom-generator-installer@v3.4.1 + uses: kubewarden/github-actions/sbom-generator-installer@v3.4.2 - name: Install SBOM generator tool - uses: kubewarden/github-actions/binaryen-installer@v3.4.1 + uses: kubewarden/github-actions/binaryen-installer@v3.4.2