Skip to content

Commit

Permalink
fix(trivy): add trivy-db and trivy-java-db sync
Browse files Browse the repository at this point in the history
  • Loading branch information
g-iannelli committed Sep 26, 2024
1 parent 002bd27 commit 96325af
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/sync-trivy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ jobs:
- name: Sync Trivy DBs
run: |
skopeo login --username ${{ secrets.SIGHUP_REGISTRY_USERNAME }} registry.sighup.io -p ${{ secrets.SIGHUP_REGISTRY_PASSWORD }}
set -x
local sync_attempt=0
local trivy_db_break=0
local trivy_java_db_break=0
sync_attempt=0
trivy_db_break=0
trivy_java_db_break=0
while [ $((sync_attempt)) -lt 10 ]
do
Expand All @@ -46,8 +46,8 @@ jobs:
then
break
fi
trivy_db_attempt=$((sync_attempt + 1))
sync_attempt=$((sync_attempt + 1))
sleep 120
done
Expand Down

0 comments on commit 96325af

Please sign in to comment.