From edf82f12664fe7f5bc71e64e4b00e04d5b93ecdb Mon Sep 17 00:00:00 2001 From: insider-automation <117348511+insider-automation@users.noreply.github.com> Date: Sat, 27 Jan 2024 08:00:22 +0300 Subject: [PATCH] Security | Add cxflow.yml action --- .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 00000000..cb220066 --- /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