Skip to content

Commit 8ac5172

Browse files
committed
chore(ci): extract Kyverno CLI to temporary directory to avoid conflict
Extract Kyverno CLI tarball to /tmp/kyverno-cli instead of current directory to prevent overwrite errors when kyverno folder already exists.
1 parent 0175299 commit 8ac5172

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/validate-claims.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,9 @@ jobs:
2020
- name: Install Kyverno CLI
2121
run: |
2222
curl -LO https://github.com/kyverno/kyverno/releases/download/v1.12.0/kyverno-cli_v1.12.0_linux_x86_64.tar.gz
23-
tar -xvf kyverno-cli_v1.12.0_linux_x86_64.tar.gz
24-
sudo mv kyverno /usr/local/bin/
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/
2526
kyverno version
2627
2728
- name: Run Kyverno policy checks on claims

0 commit comments

Comments
 (0)