From da6f0af42a0a32943dc1f5d674a1eaf6ee1a773f Mon Sep 17 00:00:00 2001 From: insider-automation <117348511+insider-automation@users.noreply.github.com> Date: Sat, 14 Sep 2024 00:18:08 +0300 Subject: [PATCH] new workflow added --- .github/workflows/security_allinone.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/security_allinone.yml diff --git a/.github/workflows/security_allinone.yml b/.github/workflows/security_allinone.yml new file mode 100644 index 0000000..b611631 --- /dev/null +++ b/.github/workflows/security_allinone.yml @@ -0,0 +1,22 @@ +name: Security AllInOne +on: + push: + branches: '**' + pull_request: + types: + - opened + - closed + - ready_for_review +jobs: + build: + runs-on: + group: default + labels: self-hosted + steps: + - name: Trigger to Insider Security + run: | + curl -X POST -H "Content-Type: application/json" \ + -d '{"type": "security-allinone", "version": "v1", "repository": "${{ github.event.repository.name }}", "ref": "${{ github.head_ref || github.ref_name }}", "event_name": "${{ github.event_name }}", "event_action": "${{ github.event.action }}", "default_branch": "${{ github.event.repository.default_branch }}"}' \ + $INSECPROXY_HOOK + env: + INSECPROXY_HOOK: ${{ secrets.INSECPROXY_HOOK }} \ No newline at end of file