Skip to content

Commit 8fb7c05

Browse files
committed
chore: check cloud tag main trivy
1 parent 9c899a1 commit 8fb7c05

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/trivy-scan-cloud.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
required: false
1010
default: ''
1111
schedule:
12-
- cron: '0 0 * * 1-5' # Runs at 08:00 UTC on Mon to Friday
12+
- cron: '0 1 * * 1' # Runs at 08:00 UTC on Mon to Friday
1313

1414
env:
1515
GH_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
@@ -32,7 +32,7 @@ jobs:
3232
run: |
3333
CLOUD_TAG="${{ inputs.CLOUD_TAG }}"
3434
if [[ -z "${CLOUD_TAG}" ]]; then
35-
CLOUD_TAG=$(gh release list --repo ${{ env.CLOUD_REPO }} | grep -v "alpha" | grep -v "beta" | awk 'NR==1{print $2}')
35+
CLOUD_TAG=$(gh release list --repo ${{ env.CLOUD_REPO }} | (grep "alpha" || true) | awk 'NR==1{print $2}')
3636
fi
3737
echo "cloud-tag=${CLOUD_TAG}" >> $GITHUB_OUTPUT
3838

0 commit comments

Comments
 (0)