File tree Expand file tree Collapse file tree 1 file changed +43
-0
lines changed
Expand file tree Collapse file tree 1 file changed +43
-0
lines changed Original file line number Diff line number Diff line change 1+ name : " CodeQL"
2+
3+ on :
4+ push :
5+ branches : [master]
6+ pull_request :
7+ branches : [master]
8+ schedule :
9+ - cron : ' 0 6 * * 1'
10+
11+ jobs :
12+ analyze :
13+ name : Analyze
14+ runs-on : ubuntu-latest
15+
16+ strategy :
17+ fail-fast : false
18+ matrix :
19+ language : ['javascript']
20+ # Learn more...
21+ # https://docs.github.com/en/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#overriding-automatic-language-detection
22+
23+ steps :
24+ - name : Checkout repository
25+ uses : actions/checkout@v2
26+ with :
27+ # We must fetch at least the immediate parents so that if this is
28+ # a pull request then we can checkout the head.
29+ fetch-depth : 2
30+
31+ # If this run was triggered by a pull request event, then checkout
32+ # the head of the pull request instead of the merge commit.
33+ - run : git checkout HEAD^2
34+ if : ${{ github.event_name == 'pull_request' }}
35+
36+ # Initializes the CodeQL tools for scanning.
37+ - name : Initialize CodeQL
38+ uses : github/codeql-action/init@v1
39+ with :
40+ languages : ${{ matrix.language }}
41+
42+ - name : Perform CodeQL Analysis
43+ uses : github/codeql-action/analyze@v1
You can’t perform that action at this time.
0 commit comments