Files
sigma-rules/.github/workflows/get-target-branches.yml
T
2025-01-09 18:05:55 -05:00

34 lines
875 B
YAML

name: List Target Branches
on:
workflow_call:
# Map the workflow outputs to job outputs
outputs:
branches:
description: "List of target branches"
value: ${{ jobs.list-target-branches.outputs.matrix }}
jobs:
list-target-branches:
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.get-branch-list.outputs.matrix }}
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip cache purge
pip install .[dev]
- id: get-branch-list
run: |
python -m detection_rules dev utils get-branches
echo "::set-output name=matrix::$(cat ./detection_rules/etc/target-branches.yaml)"