mirror of
https://github.com/splunk/security_content
synced 2026-06-08 17:32:49 +00:00
Changes and updates to support better, more reliable
checkouts of PRs from remote forks and better ESCU app building. Still in testing phases.
This commit is contained in:
@@ -81,8 +81,8 @@ jobs:
|
||||
# Note that scheduled actions ONLY run on the default branch, so it won't run on all other branches!
|
||||
echo "Running a nightly test on all detections OR a commit was made directly to develop"
|
||||
python detection_testing_execution.py run --branch develop --mode all --mock --config_file test_config_github_actions.json
|
||||
elif [[ ! -z "${{ github.event.pull_request.head.ref }}" && ! -z "${{ github.event.pull_request.number }}" ]]; then
|
||||
echo "Pull request from source branch [${{ github.event.pull_request.head.ref }}] for PR number [${{ github.event.issue.number }}]"
|
||||
elif [[ ${{ github.event_name }} == pull_request && ! -z "${{ github.event.pull_request.number }}" ]]; then
|
||||
echo "Pull request from source branch [${{ github.event.pull_request.head.ref }}] for PR number [${{ github.event.pull_request.number }}]"
|
||||
python detection_testing_execution.py run --branch ${{ github.event.pull_request.head.ref }} --pr_number ${{ github.event.pull_request.number }} --mode changes --mock --config_file test_config_github_actions.json
|
||||
else
|
||||
echo "Push from branch [${{ steps.vars.outputs.branch }}]"
|
||||
|
||||
Reference in New Issue
Block a user