We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9c899a1 commit 8fb7c05Copy full SHA for 8fb7c05
.github/workflows/trivy-scan-cloud.yml
@@ -9,7 +9,7 @@ on:
9
required: false
10
default: ''
11
schedule:
12
- - cron: '0 0 * * 1-5' # Runs at 08:00 UTC on Mon to Friday
+ - cron: '0 1 * * 1' # Runs at 08:00 UTC on Mon to Friday
13
14
env:
15
GH_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
@@ -32,7 +32,7 @@ jobs:
32
run: |
33
CLOUD_TAG="${{ inputs.CLOUD_TAG }}"
34
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}')
+ CLOUD_TAG=$(gh release list --repo ${{ env.CLOUD_REPO }} | (grep "alpha" || true) | awk 'NR==1{print $2}')
36
fi
37
echo "cloud-tag=${CLOUD_TAG}" >> $GITHUB_OUTPUT
38
0 commit comments