mirror of
https://github.com/splunk/security_content
synced 2026-06-08 17:32:49 +00:00
Update .gitignore to exclude dist directory
This commit is contained in:
@@ -1,37 +1,37 @@
|
||||
name: auto-update
|
||||
on:
|
||||
push: {}
|
||||
jobs:
|
||||
# name: auto-update
|
||||
# on:
|
||||
# push: {}
|
||||
# jobs:
|
||||
|
||||
validate-tag-if-present:
|
||||
runs-on: ubuntu-latest
|
||||
# validate-tag-if-present:
|
||||
# runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: TAGGED, Validate that the tag is in the correct format
|
||||
# steps:
|
||||
# - name: TAGGED, Validate that the tag is in the correct format
|
||||
|
||||
run: |
|
||||
echo "The GITHUB_REF: $GITHUB_REF"
|
||||
#First check to see if the release is a tag
|
||||
if [[ $GITHUB_REF =~ refs/tags/* ]]; then
|
||||
#Yes, this is a tag, so we need to test to make sure that the tag
|
||||
#is in the correct format (like v1.10.20)
|
||||
if [[ $GITHUB_REF =~ refs/tags/v[0-9]+.[0-9]+.[0-9]+ ]]; then
|
||||
echo "PASS: Tagged release with good format"
|
||||
exit 0
|
||||
else
|
||||
echo "FAIL: Tagged release with bad format"
|
||||
exit 1
|
||||
fi
|
||||
else
|
||||
echo "PASS: Not a tagged release"
|
||||
exit 0
|
||||
fi
|
||||
autoupdate:
|
||||
name: autoupdate
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: docker://chinthakagodawita/autoupdate-action:v1
|
||||
env:
|
||||
GITHUB_TOKEN: "${{ secrets.SECURITY_CONTENT_ADMIN_TASKS }}"
|
||||
DRY_RUN: "false"
|
||||
MERGE_MSG: "Branch was auto-updated."
|
||||
# run: |
|
||||
# echo "The GITHUB_REF: $GITHUB_REF"
|
||||
# #First check to see if the release is a tag
|
||||
# if [[ $GITHUB_REF =~ refs/tags/* ]]; then
|
||||
# #Yes, this is a tag, so we need to test to make sure that the tag
|
||||
# #is in the correct format (like v1.10.20)
|
||||
# if [[ $GITHUB_REF =~ refs/tags/v[0-9]+.[0-9]+.[0-9]+ ]]; then
|
||||
# echo "PASS: Tagged release with good format"
|
||||
# exit 0
|
||||
# else
|
||||
# echo "FAIL: Tagged release with bad format"
|
||||
# exit 1
|
||||
# fi
|
||||
# else
|
||||
# echo "PASS: Not a tagged release"
|
||||
# exit 0
|
||||
# fi
|
||||
# autoupdate:
|
||||
# name: autoupdate
|
||||
# runs-on: ubuntu-latest
|
||||
# steps:
|
||||
# - uses: docker://chinthakagodawita/autoupdate-action:v1
|
||||
# env:
|
||||
# GITHUB_TOKEN: "${{ secrets.SECURITY_CONTENT_ADMIN_TASKS }}"
|
||||
# DRY_RUN: "false"
|
||||
# MERGE_MSG: "Branch was auto-updated."
|
||||
|
||||
@@ -30,7 +30,6 @@ jobs:
|
||||
# exit 0
|
||||
# fi
|
||||
|
||||
|
||||
docker-detection-testing-setup:
|
||||
runs-on: ubuntu-latest
|
||||
if: "!contains(github.ref, 'refs/tags/')" #don't run on tags - future steps won't run either since they depend on this job
|
||||
@@ -59,13 +58,16 @@ jobs:
|
||||
pip install contentctl
|
||||
git clone --depth=1 --single-branch --branch=master https://github.com/redcanaryco/atomic-red-team.git
|
||||
|
||||
- name: Variable names
|
||||
- name: print variable names
|
||||
run: |
|
||||
source .venv/bin/activate
|
||||
|
||||
echo "github.event.issue.pull_request : [${{ github.event.issue.pull_request }}]"
|
||||
echo "github.event.pull_request.number : [${{ github.event.pull_request.number }}]"
|
||||
echo "steps.vars.outputs.branch : [${{ steps.vars.outputs.branch }}]"
|
||||
echo "github.event.pull_request.head.ref : [${{ github.event.pull_request.head.ref }}]"
|
||||
echo "github.event_name : [${{ github.event_name }}]"
|
||||
|
||||
|
||||
- name: Run ContentCTL test for changes against develop
|
||||
run: |
|
||||
source .venv/bin/activate
|
||||
contentctl test --post-test-behavior never_pause mode:changes --mode.target-branch develop
|
||||
+4
-1
@@ -1,6 +1,9 @@
|
||||
# Ignore example files from contentctl tool
|
||||
apps/
|
||||
dist/
|
||||
/dist/DA-ESS-ContentUpdate/**/*.xml
|
||||
/dist/DA-ESS-ContentUpdate/**/*.conf
|
||||
/dist/api/*.json
|
||||
/dist/ssa/srs/*.yml
|
||||
test_results/
|
||||
detections/*/.yml.example
|
||||
stories/*.yml.example
|
||||
|
||||
Reference in New Issue
Block a user