diff --git a/argo-workflows/example-ci-workflow.yaml b/argo-workflows/example-ci-workflow.yaml index 3c14ba7..c3822c5 100644 --- a/argo-workflows/example-ci-workflow.yaml +++ b/argo-workflows/example-ci-workflow.yaml @@ -135,6 +135,8 @@ spec: mountPath: /shared-data # How to extract artifacts + # For now this task will fail if the lint scan finds any issue with --error-on-issues + # --max-same-issues or --max-issues-per-linter also possible - name: lint-scan container: image: golangci/golangci-lint:v1.61.0 @@ -142,7 +144,7 @@ spec: args: - | cd /shared-data/repo && \ - golangci-lint run ./... --out-format=json --timeout 5m > lint-results.json; \ + golangci-lint run ./... --issues-exit-code --out-format=json --timeout 5m > lint-results.json; \ cat lint-results.json volumeMounts: - name: shared-data