Repository navigation
59 lines (54 loc) · 1.91 KB
/
Copy pathpatch-security-diagnostics.yml
File metadata and controls
59 lines (54 loc) · 1.91 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: Patch branch security diagnostics
on:
push:
branches: [patch/vulnerability]
concurrency:
group: patch-security-diagnostics-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
dependency-audit:
name: Dependency audit (all severities)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: actions/setup-node@8fccf151e3ba8038c300f83b40c8fd1e94f9c5ce # v7.2.0
with:
node-version: 24
cache: npm
- run: npm ci
- name: Run the complete Node.js regression suite
run: npm test
- name: Run repository source and policy lint
run: npm run lint
- name: Run Python SDK regression tests
run: python -m unittest discover -s test/python-sdk -v
- name: Audit every reported vulnerability severity
run: npm audit --audit-level=low
codeql:
name: CodeQL offline SARIF inventory
runs-on: ubuntu-latest
permissions:
contents: read
security-events: read
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: actions/setup-node@8fccf151e3ba8038c300f83b40c8fd1e94f9c5ce # v7.2.0
with:
node-version: 24
cache: npm
- run: npm ci
- name: Initialize CodeQL for the scanned source languages
uses: github/codeql-action/init@915412ff23e8b7659517e607487dbeae018f2934 # v4
with:
languages: javascript, actions, python
queries: security-and-quality
- name: Run CodeQL without uploading a competing analysis
id: analyze
uses: github/codeql-action/analyze@915412ff23e8b7659517e607487dbeae018f2934 # v4
with:
output: ../codeql-results
upload: never
- name: Print every finding with rule, severity, location and data flow
run: node scripts/codeql-report.mjs