Skip to content

Commit 8f74145

Browse files
committed
fix(ci): include stderr in Kyverno CLI output to capture validation errors in workflow summary
Redirects stderr to stdout during Kyverno validation to ensure all messages are recorded in result.txt.
1 parent 892bf4f commit 8f74145

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/validate-claims.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
echo '```' >> $GITHUB_STEP_SUMMARY
3333
3434
set +e
35-
kyverno apply ./kyverno --resource ./crossplane/claims | 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)