add: SRO (Security Research Orchestrator) to plugins #703
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Validate PR YAML Files | |
| on: | |
| pull_request: | |
| paths: | |
| - 'data/**' | |
| permissions: | |
| contents: read | |
| jobs: | |
| validate: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Get changed YAML files | |
| id: changed-files | |
| uses: tj-actions/changed-files@v44 | |
| with: | |
| files: | | |
| data/**/*.yaml | |
| - name: Validate YAML files | |
| run: | | |
| if [[ -n "${{ steps.changed-files.outputs.all_changed_files }}" ]]; then | |
| node scripts/validate.js ${{ steps.changed-files.outputs.all_changed_files }} | |
| else | |
| echo "No YAML files changed, skipping validation" | |
| fi |