1+ name : code scan
2+
3+ on :
4+ push :
5+ branches : [master]
6+ pull_request :
7+ branches : [master]
8+
9+ jobs :
10+ analyze :
11+ name : Analyze
12+ runs-on : ubuntu-latest
13+ permissions :
14+ actions : read
15+ contents : read
16+ security-events : write
17+
18+ strategy :
19+ fail-fast : false
20+ matrix :
21+ language : ["python"]
22+ # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
23+ # Learn more:
24+ # https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed
25+
26+ steps :
27+ - name : Checkout repository
28+ uses : actions/checkout@v2
29+
30+ # Initializes the CodeQL tools for scanning.
31+ - name : Initialize CodeQL
32+ uses : github/codeql-action/init@v1
33+ with :
34+ languages : ${{ matrix.language }}
35+ # If you wish to specify custom queries, you can do so here or in a config file.
36+ # By default, queries listed here will override any specified in a config file.
37+ # Prefix the list here with "+" to use these queries and those in the config file.
38+ # queries: ./path/to/local/query, your-org/your-repo/queries@main
39+
40+ # Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
41+ # If this step fails, then you should remove it and run the build manually (see below)
42+ - name : Autobuild
43+ uses : github/codeql-action/autobuild@v1
44+
45+ # ℹ️ Command-line programs to run using the OS shell.
46+ # 📚 https://git.io/JvXDl
47+
48+ # ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
49+ # and modify them (or add more) to build your code if your project
50+ # uses a compiled language
51+
52+ # - run: |
53+ # make bootstrap
54+ # make release
55+
56+ - name : Perform CodeQL Analysis
57+ uses : github/codeql-action/analyze@v1
0 commit comments