Skip to content

Commit 9e4001d

Browse files
committed
check rclone failure explicitly
1 parent f9103d8 commit 9e4001d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/security_tests_v1.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,10 +278,18 @@ jobs:
278278
echo "RCLONE_IMAGE_TAG=$RCLONE_IMAGE_TAG" >> $GITHUB_ENV
279279
make IMAGE_TAG=$RCLONE_IMAGE_TAG docker-build
280280
- name: Scan rclone
281+
id: scan-rclone
281282
uses: snyk/actions/docker@master
282283
env:
283284
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
284285
with:
285286
image: ${{ env.RCLONE_IMAGE_TAG}}
286287
# TODO fix, passes even if CVEs found
287288
args: --fail-on=upgradable --app-vulns --severity-threshold=high --file=components/rclone-storage-initializer/Dockerfile
289+
- name: Check for image scan failures
290+
if: always()
291+
run: |
292+
if [ "${{ steps.scan-rclone.outcome }}" != "success" ]; then
293+
echo "Rclone docker image scan failed"
294+
exit 1
295+
fi

0 commit comments

Comments
 (0)