update(workflow): add pattern validation for query name and description #1570
Workflow file for this run
This file contains 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-queries-metadata | |
on: | |
pull_request: | |
paths: | |
- "assets/queries/**/metadata.json" | |
jobs: | |
validate-metadata: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | |
with: | |
persist-credentials: false | |
- name: Run queries metadata validation script | |
env: | |
KICS_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
KICS_PR_NUMBER: ${{ github.event.number }} | |
id: validator | |
working-directory: .github/scripts/queries-validator/ | |
run: | | |
pip3 install -r requirements.txt | |
python3 queries-validator.py |