[New Rule] Azure WireServer Abuse Related Detections #4634
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: REACT Tests Dispatcher | |
| on: | |
| pull_request: | |
| paths: | |
| - 'rules/**/*.toml' | |
| - '!rules/_deprecated/**.toml' | |
| - '!rules/integrations/aws/*.toml' | |
| - '!rules/integrations/aws_bedrock/*.toml' | |
| - '!rules/integrations/azure/*.toml' | |
| - '!rules/integrations/beaconing/*.toml' | |
| - '!rules/integrations/cloud_defend/*.toml' | |
| - '!rules/integrations/cyberarkpas/*.toml' | |
| - '!rules/integrations/ded/*.toml' | |
| - '!rules/integrations/dga/*.toml' | |
| - '!rules/integrations/fim/*.toml' | |
| - '!rules/integrations/gcp/*.toml' | |
| - '!rules/integrations/github/*.toml' | |
| - '!rules/integrations/google_workspace/*.toml' | |
| - '!rules/integrations/kubernetes/*.toml' | |
| - '!rules/integrations/lmd/*.toml' | |
| - '!rules/integrations/o365/*.toml' | |
| - '!rules/integrations/okta/*.toml' | |
| - '!rules/integrations/problemchild/*.toml' | |
| - '!rules/integrations/pad/*.toml' | |
| permissions: | |
| contents: read | |
| id-token: write | |
| jobs: | |
| dispatch: | |
| name: Run REACT tests | |
| runs-on: ubuntu-latest | |
| # OIDC id-tokens are not issued for pull_request events from forks | |
| if: github.event.pull_request.head.repo.full_name == github.repository | |
| steps: | |
| - name: Fetch ephemeral GitHub token | |
| id: fetch-ephemeral-token | |
| uses: elastic/ci-gh-actions/fetch-github-token@2feb1c6f5086cf8e06f61ef35e275abed3456f7b # v1.5.3 | |
| with: | |
| vault-instance: "ci-prod" | |
| vault-role: "token-policy-2ed58b010dcf" | |
| - name: Trigger REACT workflow | |
| env: | |
| REACT_WORKFLOW_ID: "detection-rules-tests.yml" | |
| run: | | |
| curl -X POST \ | |
| -H "Accept: application/vnd.github.everest-preview+json" \ | |
| -H "Content-Type: application/json" \ | |
| -H "Authorization: token ${{ steps.fetch-ephemeral-token.outputs.token }}" \ | |
| "https://api.github.com/repos/elastic/react/actions/workflows/$REACT_WORKFLOW_ID/dispatches" \ | |
| -d '{"ref": "main", "inputs": {"pr_branch": "${{ github.head_ref || github.ref_name }}", "pr_id": "${{ github.event.number }}"}}' | |
| exit $? |