File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -96,13 +96,18 @@ aliases:
96
96
echo 'Found dangers'; exit 1;
97
97
fi
98
98
99
+ echo "export SKIP_VIRUSTOTAL_REPORT=true" >> $BASH_ENV
99
100
echo 'Passed';
100
101
shell : /bin/bash
101
102
no_output_timeout : 15m
102
103
virustotalReport : &virustotalReport
103
104
run :
104
105
name : Virustotal slack report
105
106
command : &virusreport |
107
+ if [ "$SKIP_VIRUSTOTAL_REPORT" == "true" ]; then
108
+ exit 0;
109
+ fi
110
+
106
111
FILE_NAME=virustotal.report.json
107
112
BUILD_NAME=$BUILD_NAME FILE_NAME=$FILE_NAME VIRUS_CHECK_FAILED=$VIRUS_CHECK_FAILED node .circleci/virustotal-report.js &&
108
113
curl -H "Content-type : application/json" --data @$FILE_NAME -H "Authorization: Bearer ${SLACK_TEST_REPORT_KEY}" -X POST https://slack.com/api/chat.postMessage
@@ -740,6 +745,7 @@ jobs:
740
745
name : Send virustotal passed report
741
746
command : |
742
747
echo 'export VIRUS_CHECK_FAILED=0' >> $BASH_ENV
748
+ echo 'export SKIP_VIRUSTOTAL_REPORT=false' >> $BASH_ENV
743
749
- << : *virustotalReport
744
750
docker :
745
751
executor : linux-executor
You can’t perform that action at this time.
0 commit comments