diff --git a/.github/workflows/trivy.yaml b/.github/workflows/trivy.yaml index 68354ede..fdb7ac6f 100644 --- a/.github/workflows/trivy.yaml +++ b/.github/workflows/trivy.yaml @@ -22,7 +22,7 @@ jobs: # origin/v1.1 # origin/release-1.30 # origin/main - BRANCHES=$(git branch -r | grep -E '^ origin\/(((v|release-)?[0-9]+.[0-9]+)|(main))$' | \ + BRANCHES=$(git branch -r | grep -E '^ origin\/(((v|release-)?[0-9]+.[0-9]+)|main)$' | \ sed -e 's#^ origin/##' | jq -R -s -c 'split("\n")[:-1]') echo "branches=$(echo $BRANCHES)" >> $GITHUB_OUTPUT scan: