Files
sigma-rules/.github/workflows/get-target-branches.yml
T
Terrance DeJesus 8766734c89 [Bug] Adding additional dependency typing-extensions (#2812)
* added additional dependency

* addding pip cache purge
2023-05-24 10:23:35 -04:00

34 lines
870 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@v2
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- 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.yml)"