Skip to content

[Marketplace Contribution] Exabeam - Content Pack Update #27642

[Marketplace Contribution] Exabeam - Content Pack Update

[Marketplace Contribution] Exabeam - Content Pack Update #27642

name: Protect Infrastructure Directories
on:
pull_request:
types:
- opened
- synchronize
jobs:
check_changes:
runs-on: ubuntu-latest
if: 'startsWith(github.head_ref, ''contrib'') || (github.event.pull_request.head.repo.fork == true && contains(github.event.pull_request.base.ref, ''contrib''))'
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Get changed files
id: changed-files
uses: tj-actions/[email protected] # disable-secrets-detection
- name: Check for changes in protected directories
run: |
python Utils/check_protected_directories.py ${{ steps.changed-files.outputs.all_changed_files }}