Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ jobs:
SCAN_OUTPUT=$(probely scans get ${SCAN_ID} --api-key ${{ secrets.PROBELY_API_KEY }} | tail -1)
echo ${SCAN_OUTPUT}
echo "-----------------------------------"
SCAN_STATUS=$(probely scans get ${SCAN_ID} --api-key ${{ secrets.PROBELY_API_KEY }} -o JSON | jq -r '.[0].status')
SCAN_STATUS=$(probely scans get ${SCAN_ID} --api-key ${{ secrets.PROBELY_API_KEY }} -o JSON | jq -r '.status')
if [ $SCAN_STATUS == "started" ] || [ $SCAN_STATUS == "queued" ]; then
echo "Scan is running or queued!";
else
Expand All @@ -167,7 +167,7 @@ jobs:
# Step 13: check high vulnerabities
- name: Check for high vulnerabilities
run: |
HIGH_VULNS=$(probely scans get ${SCAN_ID} --api-key ${{ secrets.PROBELY_API_KEY }} -o JSON | jq -r '.[0].highs')
HIGH_VULNS=$(probely scans get ${SCAN_ID} --api-key ${{ secrets.PROBELY_API_KEY }} -o JSON | jq -r '.highs')
echo "HIGH vulnerabilities: ${HIGH_VULNS}"
if [ $HIGH_VULNS -gt 0 ]; then
echo "Scan has High vulnerabilities... aborting"
Expand All @@ -189,4 +189,4 @@ jobs:
docker stop probely-agent
docker rm test-app
docker rm probely-agent
docker network rm custom-network
docker network rm custom-network