File tree Expand file tree Collapse file tree 1 file changed +46
-0
lines changed
Expand file tree Collapse file tree 1 file changed +46
-0
lines changed Original file line number Diff line number Diff line change 1+ name : " Code scanning - action"
2+
3+ on :
4+ push :
5+ pull_request :
6+ schedule :
7+ - cron : ' 0 18 * * 0'
8+
9+ jobs :
10+ CodeQL-Build :
11+
12+ runs-on : ubuntu-latest
13+
14+ steps :
15+ - name : Checkout repository
16+ uses : actions/checkout@v2
17+ with :
18+ # We must fetch at least the immediate parents so that if this is
19+ # a pull request then we can checkout the head.
20+ fetch-depth : 2
21+
22+ # If this run was triggered by a pull request event, then checkout
23+ # the head of the pull request instead of the merge commit.
24+ - run : git checkout HEAD^2
25+ if : ${{ github.event_name == 'pull_request' }}
26+
27+ # Initializes the CodeQL tools for scanning.
28+ - name : Initialize CodeQL
29+ uses : github/codeql-action/init@v1
30+ # Override language selection by uncommenting this and choosing your languages
31+ with :
32+ languages : python, cpp
33+
34+ # ℹ️ Command-line programs to run using the OS shell.
35+ # 📚 https://git.io/JvXDl
36+
37+ # ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
38+ # and modify them (or add more) to build your code if your project
39+ # uses a compiled language
40+
41+ - run : |
42+ sudo apt install libmaxminddb-dev
43+ python setup.py build
44+
45+ - name : Perform CodeQL Analysis
46+ uses : github/codeql-action/analyze@v1
You can’t perform that action at this time.
0 commit comments