File tree Expand file tree Collapse file tree 1 file changed +60
-0
lines changed Expand file tree Collapse file tree 1 file changed +60
-0
lines changed Original file line number Diff line number Diff line change 1+ name : " CodeQL"
2+
3+ on :
4+ push :
5+ branches : [ "main" ]
6+ pull_request :
7+ branches : [ "main" ]
8+
9+ jobs :
10+ analyze :
11+ name : Analyze (${{ matrix.language }} - ${{ matrix.identifier }})
12+ # Runner size impacts CodeQL analysis time. To learn more, please see:
13+ # - https://gh.io/recommended-hardware-resources-for-running-codeql
14+ # - https://gh.io/supported-runners-and-hardware-resources
15+ # - https://gh.io/using-larger-runners (GitHub.com only)
16+ # Consider using larger runners or machines with greater resources for possible analysis time improvements.
17+ runs-on : ' ubuntu-latest'
18+ timeout-minutes : 360
19+ permissions :
20+ # required for all workflows
21+ security-events : write
22+
23+ # required to fetch internal or private CodeQL packs
24+ packages : read
25+
26+ # only required for workflows in private repositories
27+ actions : read
28+ contents : read
29+
30+ strategy :
31+ fail-fast : false
32+ matrix :
33+ include :
34+ - language : javascript-typescript
35+ build-mode : none
36+ identifier : ' source'
37+ root : ' ./src'
38+ - language : javascript-typescript
39+ build-mode : none
40+ identifier : ' bundled'
41+ root : ' ./lib'
42+ steps :
43+ - name : Checkout repository
44+ uses : actions/checkout@v4
45+
46+ - name : Install
47+ shell : bash
48+ run : npm install
49+
50+ - name : Initialize CodeQL
51+ uses : github/codeql-action/init@v3
52+ with :
53+ languages : ${{ matrix.language }}
54+ build-mode : ${{ matrix.build-mode }}
55+ source-root : ${{matrix.root}}
56+
57+ - name : Perform CodeQL Analysis ${{matrix.identifier}}
58+ uses : github/codeql-action/analyze@v3
59+ with :
60+ category : " /language:${{matrix.language}}"
You can’t perform that action at this time.
0 commit comments