diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 0000000000..98a5d03fc0 --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,21 @@ +Detections: +- changed-files: + - any-glob-to-any-file: + - detections/** + - dev/** + +Stories: +- changed-files: + - any-glob-to-any-file: stories/* + +Playbooks: +- changed-files: + - any-glob-to-any-file: playbooks/* + +Macros: +- changed-files: + - any-glob-to-any-file: macros/* + +Lookups: +- changed-files: + - any-glob-to-any-file: lookups/* \ No newline at end of file diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml new file mode 100644 index 0000000000..d847ab278d --- /dev/null +++ b/.github/workflows/labeler.yml @@ -0,0 +1,18 @@ +name: "Pull Request Labeler" +on: +- pull_request_target + +jobs: + labeler: + permissions: + contents: read + pull-requests: write + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + repository: "splunk/security_content" + - uses: actions/labeler@v5 + with: + sync-labels: true + configuration-path: '.github/labeler.yml' \ No newline at end of file