File tree Expand file tree Collapse file tree 1 file changed +35
-0
lines changed
Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Original file line number Diff line number Diff line change 1+ name : " CodeQL Analysis"
2+
3+ on :
4+ push :
5+ branches : [ "main" ] # Run on pushes to main
6+ pull_request :
7+ branches : [ "main" ] # Run on pull requests targeting main
8+
9+ jobs :
10+ analyze :
11+ name : Analyze
12+ runs-on : ubuntu-latest
13+
14+ permissions :
15+ contents : read # Required by the CodeQL Action
16+ security-events : write # Required to post findings
17+
18+ strategy :
19+ matrix :
20+ language : [ "javascript"] # Adjust to your repo's languages
21+
22+ steps :
23+ - name : Checkout repository
24+ uses : actions/checkout@v4
25+
26+ - name : Initialize CodeQL
27+ uses : github/codeql-action/init@v3
28+ with :
29+ languages : ${{ matrix.language }}
30+
31+ - name : Autobuild
32+ uses : github/codeql-action/autobuild@v3
33+
34+ - name : Run CodeQL Analysis
35+ uses : github/codeql-action/analyze@v3
You can’t perform that action at this time.
0 commit comments