glenn-jocher commited on
Commit
b53c8ac
1 Parent(s): 68e6ab6

Create codeql-analysis.yml (#1644)

Browse files

* Create codeql-analysis.yml

* Update ci-testing.yml

.github/workflows/ci-testing.yml CHANGED
@@ -2,9 +2,12 @@ name: CI CPU testing
2
 
3
  on: # https://help.github.com/en/actions/reference/events-that-trigger-workflows
4
  push:
 
5
  pull_request:
 
 
6
  schedule:
7
- - cron: "0 0 * * *"
8
 
9
  jobs:
10
  cpu-tests:
 
2
 
3
  on: # https://help.github.com/en/actions/reference/events-that-trigger-workflows
4
  push:
5
+ branches: [ master ]
6
  pull_request:
7
+ # The branches below must be a subset of the branches above
8
+ branches: [ master ]
9
  schedule:
10
+ - cron: '0 0 * * *' # Runs at 00:00 UTC every day
11
 
12
  jobs:
13
  cpu-tests:
.github/workflows/codeql-analysis.yml ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # This action runs GitHub's industry-leading static analysis engine, CodeQL, against a repository's source code to find security vulnerabilities.
2
+ # https://github.com/github/codeql-action
3
+
4
+ name: "CodeQL"
5
+
6
+ on:
7
+ schedule:
8
+ - cron: '0 0 1 * *' # Runs at 00:00 UTC on the 1st of every month
9
+
10
+ jobs:
11
+ analyze:
12
+ name: Analyze
13
+ runs-on: ubuntu-latest
14
+
15
+ strategy:
16
+ fail-fast: false
17
+ matrix:
18
+ language: [ 'python' ]
19
+ # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
20
+ # Learn more:
21
+ # 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
22
+
23
+ steps:
24
+ - name: Checkout repository
25
+ uses: actions/checkout@v2
26
+
27
+ # Initializes the CodeQL tools for scanning.
28
+ - name: Initialize CodeQL
29
+ uses: github/codeql-action/init@v1
30
+ with:
31
+ languages: ${{ matrix.language }}
32
+ # If you wish to specify custom queries, you can do so here or in a config file.
33
+ # By default, queries listed here will override any specified in a config file.
34
+ # Prefix the list here with "+" to use these queries and those in the config file.
35
+ # queries: ./path/to/local/query, your-org/your-repo/queries@main
36
+
37
+ # Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
38
+ # If this step fails, then you should remove it and run the build manually (see below)
39
+ - name: Autobuild
40
+ uses: github/codeql-action/autobuild@v1
41
+
42
+ # ℹ️ Command-line programs to run using the OS shell.
43
+ # 📚 https://git.io/JvXDl
44
+
45
+ # ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
46
+ # and modify them (or add more) to build your code if your project
47
+ # uses a compiled language
48
+
49
+ #- run: |
50
+ # make bootstrap
51
+ # make release
52
+
53
+ - name: Perform CodeQL Analysis
54
+ uses: github/codeql-action/analyze@v1