@@ -92,12 +92,22 @@ aliases:
92
92
echo "analazedHarmless : ${analazedHarmless}, analazedMalicious: ${analazedMalicious}, analazedSuspicious: ${analazedSuspicious}"
93
93
94
94
if [ "$analazedMalicious" != "0" ] || [ "$analazedSuspicious" != "0" ]; then
95
+ echo "export VIRUS_CHECK_FAILED=1" >> $BASH_ENV
95
96
echo 'Found dangers'; exit 1;
96
97
fi
97
98
98
99
echo 'Passed';
99
100
shell : /bin/bash
100
101
no_output_timeout : 15m
102
+ virustotalReport : &virustotalReport
103
+ run :
104
+ name : Virustotal slack report
105
+ command : &virusreport |
106
+ FILE_NAME=virustotal.report.json
107
+ BUILD_NAME=$BUILD_NAME $FILE_NAME=$FILE_NAME VIRUS_CHECK_FAILED=$VIRUS_CHECK_FAILED node .circleci/virustotal-report.js
108
+ # BUILD_NAME=$BUILD_NAME $FILE_NAME=$FILE_NAME VIRUS_CHECK_FAILED=$VIRUS_CHECK_FAILED node .circleci/virustotal-report.js &&
109
+ # curl -H "Content-type: application/json" --data @$FILE_NAME -H "Authorization: Bearer ${SLACK_TEST_REPORT_KEY}" -X POST https://slack.com/api/chat.postMessage
110
+ shell : /bin/bash
101
111
iTestsNames : &iTestsNames
102
112
- oss-st-5 # OSS Standalone v5
103
113
- oss-st-5-pass # OSS Standalone v5 with admin pass required
@@ -718,8 +728,20 @@ jobs:
718
728
name : export URL environment variable
719
729
command : |
720
730
echo 'export URL="https://download.redisinsight.redis.com/latest/<< parameters.fileName >>"' >> $BASH_ENV
731
+ echo 'export BUILD_NAME="<< parameters.fileName >>"' >> $BASH_ENV
721
732
- << : *urlScan
722
733
- << : *validate
734
+ - << : *virustotalReport
735
+
736
+ virustotal-report :
737
+ executor : linux-executor
738
+ steps :
739
+ - checkout
740
+ - run :
741
+ name : Send virustotal passed report
742
+ command : |
743
+ echo 'export VIRUS_CHECK_FAILED=0' >> $BASH_ENV
744
+ - << : *virustotalReport
723
745
docker :
724
746
executor : linux-executor
725
747
parameters :
@@ -1073,45 +1095,56 @@ workflows:
1073
1095
# requires: *devBuildRequire
1074
1096
1075
1097
- virustotal-url :
1076
- name : Virus check - AppImage (prod )
1098
+ name : Virus check - AppImage (nightly )
1077
1099
fileName : RedisInsight-v2-linux-x86_64.AppImage
1078
1100
# requires:
1079
1101
# - Build app - Linux (dev)
1080
1102
- virustotal-url :
1081
- name : Virus check - deb (prod )
1103
+ name : Virus check - deb (nightly )
1082
1104
fileName : RedisInsight-v2-linux-amd64.deb
1083
1105
# requires:
1084
1106
# - Build app - Linux (dev)
1085
1107
- virustotal-url :
1086
- name : Virus check - rpm (prod )
1108
+ name : Virus check - rpm (nightly )
1087
1109
fileName : RedisInsight-v2-linux-x86_64.rpm
1088
1110
# requires:
1089
1111
# - Build app - Linux (dev)
1090
1112
- virustotal-url :
1091
- name : Virus check - snap (prod )
1113
+ name : Virus check - snap (nightly )
1092
1114
fileName : RedisInsight-v2-linux-amd64.snap
1093
1115
# requires:
1094
1116
# - Build app - Linux (dev)
1095
1117
- virustotal-url :
1096
- name : Virus check x64 - dmg (prod )
1118
+ name : Virus check x64 - dmg (nightly )
1097
1119
fileName : RedisInsight-v2-mac-x64.dmg
1098
1120
# requires:
1099
1121
# - Build app - MacOS (dev)
1100
1122
- virustotal-url :
1101
- name : Virus check arm64 - dmg (prod )
1123
+ name : Virus check arm64 - dmg (nightly )
1102
1124
fileName : RedisInsight-v2-mac-arm64.dmg
1103
1125
# requires:
1104
1126
# - Build app - MacOS (dev)
1105
1127
- virustotal-url :
1106
- name : Virus check MAS - pkg (prod )
1128
+ name : Virus check MAS - pkg (nightly )
1107
1129
fileName : RedisInsight-mac-universal-mas.pkg
1108
1130
# requires:
1109
1131
# - Build app - MacOS (dev)
1110
1132
- virustotal-url :
1111
- name : Virus check - exe (prod )
1133
+ name : Virus check - exe (nightly )
1112
1134
fileName : RedisInsight-v2-win-installer.exe
1113
1135
# requires:
1114
1136
# - Build app - Windows (dev)
1137
+ - virustotal-report :
1138
+ name : Virus report (prod)
1139
+ requires :
1140
+ - Virus check - AppImage (nightly)
1141
+ - Virus check - deb (nightly)
1142
+ - Virus check - rpm (nightly)
1143
+ - Virus check - snap (nightly)
1144
+ - Virus check x64 - dmg (nightly)
1145
+ - Virus check arm64 - dmg (nightly)
1146
+ - Virus check MAS - pkg (nightly)
1147
+ - Virus check - exe (nightly)
1115
1148
# - store-build-artifacts:
1116
1149
# name: Store build artifacts (dev)
1117
1150
# requires:
0 commit comments