forked from CycloneDX/tool-center
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (34 loc) · 1.03 KB
/
validate_tools_json.yml
File metadata and controls
41 lines (34 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Validate tools.json
on:
push:
branches: [ 'master', 'main' ]
paths:
- "tools.json"
- "schemas/tools.schema.json"
- ".github/workflows/validate_tools_json.yml"
pull_request:
branches: [ 'master', 'main' ]
paths:
- "tools.json"
- "schemas/tools.schema.json"
- ".github/workflows/validate_tools_json.yml"
workflow_dispatch:
# https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/controlling-permissions-for-github_token
permissions: { }
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
validate:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v5
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.x
- name: Install check-jsonschema
run: pip install check-jsonschema
- name: Validate tools.json
run: check-jsonschema --schemafile schemas/tools.schema.json tools.json