Skip to content

Commit bf9724e

Browse files
committed
chore(ci): use Kyverno GitHub Action to install CLI instead of manual download
Replaces custom install logic with official kyverno/action-install-cli for version v1.13.4.
1 parent 0b55607 commit bf9724e

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/validate-claims.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ jobs:
1818
uses: actions/checkout@v4
1919

2020
- name: Install Kyverno CLI
21-
run: |
22-
curl -LO https://github.com/kyverno/kyverno/releases/download/v1.12.0/kyverno-cli_v1.12.0_linux_x86_64.tar.gz
23-
mkdir -p /tmp/kyverno-cli
24-
tar -xvf kyverno-cli_v1.12.0_linux_x86_64.tar.gz -C /tmp/kyverno-cli
25-
sudo mv /tmp/kyverno-cli/kyverno /usr/local/bin/
26-
kyverno version
21+
uses: kyverno/action-install-cli@v0.2.0
22+
with:
23+
release: "v1.13.4"
24+
25+
- name: Check install
26+
run: kyverno version
2727

2828
- name: Run Kyverno policy checks on claims
2929
run: |
@@ -32,7 +32,7 @@ jobs:
3232
echo '```' >> $GITHUB_STEP_SUMMARY
3333
3434
set +e
35-
kyverno apply ./kyverno --resource ./crossplane/claims -t --remove-color 2>&1 | tee result.txt
35+
kyverno apply ./kyverno --resource ./crossplane/claims 2>&1 | tee result.txt
3636
KYVERNO_EXIT_CODE=${PIPESTATUS[0]}
3737
set -e
3838

0 commit comments

Comments
 (0)