From cc1178259e86e4f647f5d902a82048c6845fd219 Mon Sep 17 00:00:00 2001 From: insider-automation <117348511+insider-automation@users.noreply.github.com> Date: Mon, 24 Jun 2024 10:00:31 +0300 Subject: [PATCH] SECURITY | Add .github/workflows/cxflow.yml --- .github/workflows/cxflow.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/workflows/cxflow.yml diff --git a/.github/workflows/cxflow.yml b/.github/workflows/cxflow.yml new file mode 100644 index 0000000..cb22006 --- /dev/null +++ b/.github/workflows/cxflow.yml @@ -0,0 +1,17 @@ +name: CxFlow-GitHub-Pull-Request +on: + pull_request: + types: [ready_for_review] +jobs: + build: + runs-on: self-runner-node + steps: + - name: Trigger to Scanner Lambda + run: | + python -c ' + import json,sys,requests; + github = {"repository": "'${{ github.event.repository.name }}'", "ref": "'${{ github.head_ref }}'"}; + github_request = {"checkmarx_gitaction": github}; + requests.post("'$LambdaWebHook'", json=github_request);' + env: + LambdaWebHook: ${{ secrets.CHECKMARX_LAMBDA_WEBHOOK }} \ No newline at end of file