Skip to content

Commit 3226abc

Browse files
committed
Fix syntax for should-deploy condition
Signed-off-by: Rafi <refaei.shikho@hotmail.com>
1 parent 8af89e6 commit 3226abc

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

.github/workflows/devguard-scanner.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,12 @@ jobs:
5555
api-url: https://api.main.devguard.org
5656
fail-on-risk: high
5757
fail-on-cvss: high
58-
should-deploy: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/')
58+
should-deploy: ${{ github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/') }}
5959
secrets:
6060
devguard-token: ${{ secrets.DEVGUARD_TOKEN }}
6161
build-args: "--context=. --dockerfile=Dockerfile --build-arg GITHUB_REF_NAME=$GITHUB_REF_NAME"
6262

6363

64-
6564
build-scanner-image:
6665
uses: l3montree-dev/devguard-action/.github/workflows/build-image.yml@main
6766
with:

0 commit comments

Comments
 (0)