File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -90,7 +90,9 @@ dockerImageScan() {
90
90
# buildkite-agent artifact upload docker-scan-result --log-level info
91
91
case $exit_code in
92
92
0)
93
- buildAnnotation " docker" " $image_name " true " $PWD /docker-scan-result" | buildkite-agent annotate --append --style ' success' --context ' ctx-wiz-docker-success'
93
+ if [[ -n " ${BUILDKITE_PLUGIN_WIZ_ANNOTATE_SUCCESS} " ]]; then
94
+ buildAnnotation " docker" " $image_name " true " $PWD /docker-scan-result" | buildkite-agent annotate --append --style ' success' --context ' ctx-wiz-docker-success'
95
+ fi
94
96
exit 0
95
97
;;
96
98
* )
@@ -116,7 +118,9 @@ iacScan() {
116
118
exit_code=" $? "
117
119
case $exit_code in
118
120
0)
119
- buildAnnotation " iac" " $BUILDKITE_LABEL " true " $PWD /result/output" | buildkite-agent annotate --append --context ' ctx-wiz-iac-success' --style ' success'
121
+ if [[ -n " ${BUILDKITE_PLUGIN_WIZ_ANNOTATE_SUCCESS} " ]]; then
122
+ buildAnnotation " iac" " $BUILDKITE_LABEL " true " $PWD /result/output" | buildkite-agent annotate --append --context ' ctx-wiz-iac-success' --style ' success'
123
+ fi
120
124
;;
121
125
* )
122
126
buildAnnotation " iac" " $BUILDKITE_LABEL " false " $PWD /result/output" | buildkite-agent annotate --append --context ' ctx-wiz-iac-warning' --style ' warning'
Original file line number Diff line number Diff line change @@ -14,4 +14,6 @@ configuration:
14
14
enum :
15
15
- docker
16
16
- iac
17
+ annotate-success :
18
+ type : boolean
17
19
additionalProperties : false
You can’t perform that action at this time.
0 commit comments