This Github Action posts the Github trigger event payload to a target Splunk HEC endpoint.
The following environment variables are required to run this Github Action:
SPLUNK_WEBHOOK_URL # Splunk HEC endpoint URL
SPLUNK_HEC_TOKEN # Auth token associated with Splunk HEC endpoint
This action can be configured to work on any trigger. Here is an example trigger configuration:
on:
pull_request_review:
types: [ submitted ]
pull_request:
types: [ opened, synchronize, reopened, edited ]
branches:
- master
...
- name: Splunk Audit
uses: mx51/splunk-audit-action@master
env:
SPLUNK_WEBHOOK_URL: ${{ secrets.SPLUNK_WEBHOOK_URL }}
SPLUNK_HEC_TOKEN: ${{ secrets.SPLUNK_HEC_TOKEN }}