Managing Panther Content via CircleCI
Manage detection content in Panther with a CI/CD workflow using CircleCI
PreviousDeployment Workflows Using Panther Analysis ToolNextManaging Panther Content via GitHub Actions
Last updated
Was this helpful?
Was this helpful?
version: 2.1
jobs:
upload:
docker:
- image: 'cimg/python:3.11'
steps:
- checkout
- run:
name: Set up the virtual environment and install dependencies
command: make venv
- run:
name: Run unit tests
command: pipenv run panther_analysis_tool test
- run:
name: Upload detection content
# (Optional) Add `--filter Enabled=true` to command below to only upload Enabled detections
command: |
PANTHER_API_HOST=$INTERNAL_API_HOST \
PANTHER_API_TOKEN=$INTERNAL_API_TOKEN \
pipenv run -- panther_analysis_tool upload
workflows:
panther:
jobs:
- upload:
filters:
branches:
only:
- main