File tree Expand file tree Collapse file tree 1 file changed +48
-0
lines changed
Expand file tree Collapse file tree 1 file changed +48
-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+ schedule :
9+ - cron : ' 0 11 * * 1'
10+
11+ concurrency :
12+ group : ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
13+ cancel-in-progress : true
14+
15+ jobs :
16+ analyze :
17+ name : Analyze
18+ runs-on : ubuntu-22.04
19+
20+ strategy :
21+ fail-fast : false
22+ matrix :
23+ language : ['go']
24+
25+ steps :
26+ - name : Checkout repository
27+ uses : actions/checkout@v4.1.7
28+ with :
29+ # We must fetch at least the immediate parents so that if this is
30+ # a pull request then we can checkout the head.
31+ fetch-depth : 2
32+
33+ # If this run was triggered by a pull request event, then checkout
34+ # the head of the pull request instead of the merge commit.
35+ - run : git checkout HEAD^2
36+ if : ${{ github.event_name == 'pull_request' }}
37+
38+ # Initializes the CodeQL tools for scanning.
39+ - name : Initialize CodeQL
40+ uses : github/codeql-action/init@v2
41+ with :
42+ languages : ${{ matrix.language }}
43+
44+ - name : Autobuild
45+ uses : github/codeql-action/autobuild@v2
46+
47+ - name : Perform CodeQL Analysis
48+ uses : github/codeql-action/analyze@v2
You can’t perform that action at this time.
0 commit comments