Skip to content

Commit 8b83949

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 8b83949

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/validate-claims.yaml

Lines changed: 6 additions & 6 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: |

0 commit comments

Comments
 (0)