File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : " CodeQL Analysis"
2+
3+ on :
4+ push :
5+ branches : [main]
6+ pull_request :
7+ branches : [main]
8+ workflow_dispatch :
9+
10+ jobs :
11+ analyze :
12+ name : Analyze
13+ runs-on : ubuntu-24.04
14+ timeout-minutes : 30
15+ permissions :
16+ contents : read
17+ # required to fetch internal or private CodeQL packs
18+ packages : read
19+ security-events : write
20+
21+ strategy :
22+ fail-fast : false
23+ matrix :
24+ language : ["javascript-typescript", "actions"]
25+
26+ steps :
27+ - name : Harden Runner
28+ uses : step-security/harden-runner@20cf305ff2072d973412fa9b1e3a4f227bda3c76 # v2.14.0
29+ with :
30+ egress-policy : audit
31+
32+ - name : Check out code
33+ uses : actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
34+ with :
35+ fetch-depth : 1
36+
37+ - name : Setup Environment
38+ uses : ./.github/actions/setup
39+ with :
40+ skip-compact : " true"
41+
42+ - name : Initialize CodeQL
43+ uses : github/codeql-action/init@fe4161a26a8629af62121b670040955b330f9af2 # v4
44+ with :
45+ languages : ${{ matrix.language }}
46+ # We can add custom queries later when needed
47+ # queries: security-extended
48+
49+ - name : Perform CodeQL Analysis
50+ uses : github/codeql-action/analyze@fe4161a26a8629af62121b670040955b330f9af2 # v4
51+ with :
52+ category : " /language:${{ matrix.language }}"
You can’t perform that action at this time.
0 commit comments