diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 83ef746..2f690ee 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,26 +1,5 @@ version: 2 updates: - # Maintain dependencies for GitHub Actions - - package-ecosystem: "github-actions" - directory: "/" - target-branch: "main" - schedule: - interval: "daily" - - package-ecosystem: "gitsubmodule" - directory: "/" - target-branch: "main" - schedule: - interval: "daily" - - package-ecosystem: "gitsubmodule" - directory: "/deps/build" - target-branch: "main" - schedule: - interval: "daily" - - package-ecosystem: "gitsubmodule" - directory: "/deps/apps" - target-branch: "main" - schedule: - interval: "daily" - package-ecosystem: "pip" directory: "/" target-branch: "main" diff --git a/.github/workflows/build-test-release.yml b/.github/workflows/build-test-release.yml index de57795..cfdce4e 100644 --- a/.github/workflows/build-test-release.yml +++ b/.github/workflows/build-test-release.yml @@ -12,7 +12,7 @@ on: jobs: call-workflow: - uses: splunk/addonfactory-workflow-addon-release/.github/workflows/reusable-build-test-release.yml@v2.0 + uses: splunk/addonfactory-workflow-addon-release/.github/workflows/reusable-build-test-release.yml@v2.1 secrets: GH_TOKEN_ADMIN: ${{ secrets.GH_TOKEN_ADMIN }} GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/escu-manual-workflow.yml b/.github/workflows/escu-manual-workflow.yml new file mode 100644 index 0000000..4dab4e9 --- /dev/null +++ b/.github/workflows/escu-manual-workflow.yml @@ -0,0 +1,22 @@ +name: escu-manual-workflow +on: + workflow_dispatch: + inputs: + TA_BUILD: + description: 'TA build number (e.g. s3://ta-production-artifacts/ta-apps/{ta-name}-$build_number$.spl)' + required: true + TESTS: + description: 'Comma-Separated List of detections to run (e.g. detection1,detection2,detection3)' + required: true + +jobs: + call-workflow: + uses: splunk/addonfactory-workflow-addon-release/.github/workflows/reusable-escu-manual-workflow.yml@v2.1 + with: + TA_BUILD: ${{ inputs.TA_BUILD }} + TESTS: ${{ inputs.TESTS }} + secrets: + AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} + AWS_DEFAULT_REGION: ${{ secrets.AWS_DEFAULT_REGION }} + AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + OTHER_TA_REQUIRED_CONFIGS: ${{ secrets.OTHER_TA_REQUIRED_CONFIGS }} diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 9ef2665..9765933 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -5,13 +5,13 @@ repos: - id: check-merge-conflict - id: debug-statements - id: trailing-whitespace - exclude: ^(tests/requirement_test/logs) + exclude: ^(tests/requirement_test/logs|tests/knowledge/samples|tests/escu/.escu_detections) - id: check-yaml - id: check-xml - id: check-toml - id: check-json - id: end-of-file-fixer - exclude: ^(tests/requirement_test/logs) + exclude: ^(tests/requirement_test/logs|tests/knowledge/samples|tests/escu/.escu_detections) - repo: https://github.com/psf/black rev: 22.3.0 hooks: