File tree Expand file tree Collapse file tree 2 files changed +69
-0
lines changed Expand file tree Collapse file tree 2 files changed +69
-0
lines changed Original file line number Diff line number Diff line change 1+ name : CodeQL config
2+
3+ # Needed to customize the security-extended query suite
4+ disable-default-queries : true
5+ queries :
6+ - uses : security-extended
7+ query-filters :
8+ - exclude :
9+ id : actions/missing-workflow-permissions
10+ threat-models : local
11+ paths-ignore :
12+ - " /release_workspace.js"
13+ - " **/create-entrypoints.js"
14+ - " examples/*.ts"
15+ - " examples/**/*.ts"
16+ - " **/*.test.ts"
17+ - " **/examples/*.ts"
18+ - " **/examples/**/*.ts"
19+ - " **/*.test.ts"
20+ - " **/tests/**/*.ts"
21+ - " **/__tests__/**/*.ts"
22+ - " /libs/langchain-scripts/**/*.ts"
23+ - " docs/core_docs/scripts/*.js"
Original file line number Diff line number Diff line change 1+ name : CodeQL
2+
3+ on :
4+ workflow_dispatch :
5+ push :
6+ branches : ["main"]
7+ pull_request :
8+ branches : ["main"]
9+ schedule :
10+ - cron : " 36 12 * * 2"
11+
12+ jobs :
13+ analyze :
14+ name : Analyze (${{ matrix.language }})
15+ runs-on : " ubuntu-latest"
16+ permissions :
17+ security-events : write
18+
19+ strategy :
20+ fail-fast : false
21+ matrix :
22+ include :
23+ - language : actions
24+ - language : javascript-typescript
25+
26+ steps :
27+ - name : Checkout repository
28+ uses : actions/checkout@v4
29+
30+ - name : Initialize CodeQL
31+ uses : github/codeql-action/init@v3
32+ with :
33+ languages : ${{ matrix.language }}
34+ config-file : ./.github/codeql/codeql-config.yml
35+
36+ - name : Perform CodeQL Analysis
37+ uses : github/codeql-action/analyze@v3
38+ with :
39+ category : " /language:${{matrix.language}}"
40+ output : results-${{matrix.language}}
41+
42+ - name : Store sarif file as artifact
43+ uses : actions/upload-artifact@v4
44+ with :
45+ name : codeql-results-${{matrix.language}}
46+ path : results-${{matrix.language}}
You can’t perform that action at this time.
0 commit comments