Skip to content

Commit b572428

Browse files
authored
Merge pull request #87 from awslabs/orsifacundo-fix-scanning-messages
Update ash-multi
2 parents e01db39 + 8b80f41 commit b572428

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ash-multi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,13 +202,13 @@ run_security_check() {
202202
SCANNER_SCRIPT="cdk-docker-execute.sh"
203203
fi
204204
FULL_SCANNER_SCRIPT_PATH="${UTILS_LOCATION}/${SCANNER_SCRIPT}"
205-
echo -e "${LPURPLE}Running ${SCANNER_SCRIPT} ...${NC}"
205+
echo -e "${LPURPLE}Found ${CYAN}one or more${LPURPLE} of: [ ${RED}""${ITEMS_TO_SCAN[*]}""${LPURPLE} ] items in source dir,${NC} ${CYAN}running${GREEN} ${SCANNER_SCRIPT} ...${NC}"
206206

207207
cd ${SOURCE_DIR}
208208
# Invoke the resolved scanner script
209209
bash -C ${FULL_SCANNER_SCRIPT_PATH}
210210
else
211-
echo -e "${LPURPLE}Found one or more of: [ ${RED}""${ITEMS_TO_SCAN[*]}""${LPURPLE} ] items in source dir,${NC} ${GREEN}running ${DOCKERFILE_TO_EXECUTE} ...${NC}"
211+
echo -e "${LPURPLE}Found ${CYAN}one or more${LPURPLE} of: [ ${RED}""${ITEMS_TO_SCAN[*]}""${LPURPLE} ] items in source dir,${NC} ${CYAN}running${GREEN} ${DOCKERFILE_TO_EXECUTE} ...${NC}"
212212
${OCI_RUNNER} build -t "${RUNTIME_CONTAINER_NAME}" -f "${DOCKERFILE_LOCATION}"/"${DOCKERFILE_TO_EXECUTE}" ${DOCKER_EXTRA_ARGS} "${SOURCE_DIR}" > /dev/null
213213
set +e # the scan will fail the command if it finds any finding. we don't want it to stop our script execution
214214
${OCI_RUNNER} run --name "${RUNTIME_CONTAINER_NAME}" -v "${CFNRULES_LOCATION}":/cfnrules:ro -v "${UTILS_LOCATION}":/utils:ro -v "${SOURCE_DIR}":/src:ro -v "${OUTPUT_DIR}":/out:rw "${RUNTIME_CONTAINER_NAME}"

0 commit comments

Comments
 (0)