panther_analysis_tool_upload:
name: panther_analysis_tool upload to panther console
needs: [download_pantherlog_tool, run_schema_tests, run_unit_tests]
- name: Checkout the repo
- name: Configure AWS credentials leveraging OIDC to make the connection
uses: aws-actions/[email protected] # https://github.com/aws-actions/configure-aws-credentials role-to-assume: arn:aws:iam::1234567891012:role/PantherAnalysisFederatedCDRole # Replace with your Panther AWS Account ID
aws-region: us-west-2 # Replace with AWS region your Panther instance is in
- name: Download panther_analysis_tool
run: pip3 install panther_analysis_tool
- name: Loop through folders ending in _rules and upload to papaya-oarfish
for dir in detections/*; do
if [[ "$dir" =~ .*_rules.* ]]; then
panther_analysis_tool upload --path "$dir" --skip-tests
- name: Upload custom schemas to Panther Console
run: panther_analysis_tool update-custom-schemas --path schemas/