From bbf998127ac25a2c0ecdb349f48cb451d3e33a33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emre=20=C5=9Eafak?= <3928300+esafak@users.noreply.github.com> Date: Mon, 12 Jan 2026 12:07:37 -0500 Subject: [PATCH] fix: Specify mandatory version property for Kubescape action in examples and fix typo MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Add `version: latest` input to `.github/workflows/example-scan.yaml`. * Add `version: latest` input to `.github/workflows/example-scan-image.yaml`. * Add `version: latest` input to `.github/workflows/example-fix-commit.yaml`. * Add `version: latest` input to `.github/workflows/example-fix-pr-review.yaml`. * Correct typo "Scannign" to "Scanning" in `entrypoint.sh`. Signed-off-by: Emre Şafak <3928300+esafak@users.noreply.github.com> --- .github/workflows/example-fix-commit.yaml | 1 + .github/workflows/example-fix-pr-review.yaml | 3 ++- .github/workflows/example-scan-image.yaml | 1 + .github/workflows/example-scan.yaml | 1 + entrypoint.sh | 2 +- 5 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/example-fix-commit.yaml b/.github/workflows/example-fix-commit.yaml index 5aa651e..bdee40a 100644 --- a/.github/workflows/example-fix-commit.yaml +++ b/.github/workflows/example-fix-commit.yaml @@ -19,6 +19,7 @@ jobs: uses: tj-actions/changed-files@v35 - uses: kubescape/github-action@main with: + version: latest account: ${{ secrets.KUBESCAPE_ACCOUNT }} accessKey: ${{ secrets.KUBESCAPE_ACCESS_KEY }} server: ${{ vars.KUBESCAPE_SERVER }} diff --git a/.github/workflows/example-fix-pr-review.yaml b/.github/workflows/example-fix-pr-review.yaml index cab993b..37cd44f 100644 --- a/.github/workflows/example-fix-pr-review.yaml +++ b/.github/workflows/example-fix-pr-review.yaml @@ -19,8 +19,9 @@ jobs: uses: tj-actions/changed-files@v35 - uses: kubescape/github-action@main with: + version: latest account: ${{secrets.KUBESCAPE_ACCOUNT}} - accessKey: ${{secrets.KUBESCAPE_ACCESS_KEY}} + accessKey: ${{ secrets.KUBESCAPE_ACCESS_KEY }} server: ${{ vars.KUBESCAPE_SERVER }} files: ${{ steps.changed-files.outputs.all_changed_files }} fixFiles: true diff --git a/.github/workflows/example-scan-image.yaml b/.github/workflows/example-scan-image.yaml index ada24d4..9cba530 100644 --- a/.github/workflows/example-scan-image.yaml +++ b/.github/workflows/example-scan-image.yaml @@ -12,6 +12,7 @@ jobs: - uses: kubescape/github-action@main continue-on-error: true with: + version: latest image: quay.io/kubescape/kubescape:v3.0.3 format: sarif outputFile: results.sarif diff --git a/.github/workflows/example-scan.yaml b/.github/workflows/example-scan.yaml index 6ab2fdf..167ad16 100644 --- a/.github/workflows/example-scan.yaml +++ b/.github/workflows/example-scan.yaml @@ -12,6 +12,7 @@ jobs: - uses: kubescape/github-action@main continue-on-error: true with: + version: latest format: sarif outputFile: results.sarif # Kubescape Portal credentials diff --git a/entrypoint.sh b/entrypoint.sh index a7acc12..0f5f1c4 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -25,7 +25,7 @@ if [ -n "${INPUT_FRAMEWORKS}" ] && [ -n "${INPUT_CONTROLS}" ]; then fi if [ -z "${INPUT_FRAMEWORKS}" ] && [ -z "${INPUT_CONTROLS}" ] && [ -z "${INPUT_IMAGE}" ]; then - echo "Scannign scope is not specified. Scanning all frameworks" + echo "Scanning scope is not specified. Scanning all frameworks" INPUT_FRAMEWORKS="all" fi