From cd697bcf65ec137d9de052e8903a0e32d63ced23 Mon Sep 17 00:00:00 2001 From: "Pieter De Cremer (Semgrep)" Date: Thu, 17 Oct 2024 11:17:33 +0200 Subject: [PATCH] fix workflow condition being interpreted as a string (#3489) --- .github/workflows/trigger-semgrep-scanner-initiate-scan.yaml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/trigger-semgrep-scanner-initiate-scan.yaml b/.github/workflows/trigger-semgrep-scanner-initiate-scan.yaml index 0c29a8c1fe..c2449ab91b 100644 --- a/.github/workflows/trigger-semgrep-scanner-initiate-scan.yaml +++ b/.github/workflows/trigger-semgrep-scanner-initiate-scan.yaml @@ -52,8 +52,6 @@ jobs: HEAD_REF: ${{ github.head_ref }} REPO_NAME: ${{ github.event.repository.name }} PR_HEAD_SHA: ${{github.event.pull_request.head.sha}} - if: | - github.event_name == 'pull_request' && - env.changed_lang_count > 0 + if: github.event_name == 'pull_request' && env.changed_lang_count > 0 run: | curl -X POST https://argoworkflows-dev2.corp.r2c.dev/api/v1/events/security-research/initiate-scan-argo -H "Authorization: ${{ secrets.ARGO_WORKFLOWS_TOKEN }}" -d "{\"branch\" : \"$HEAD_REF\", \"repo\" : \"$REPO_NAME\", \"commit\" : \"$PR_HEAD_SHA\", \"changed_files\" : \"$CHANGED_FILES\" , \"langs\" : \"$CHANGED_LANGS\"}"