]> xenbits.xensource.com Git - xtf.git/commitdiff
CI: Add Github Action for CodeQL analysis
authorAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 16 Apr 2021 23:43:16 +0000 (00:43 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Sat, 17 Apr 2021 00:11:08 +0000 (01:11 +0100)
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
.github/workflows/codeql.yml [new file with mode: 0644]

diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml
new file mode 100644 (file)
index 0000000..c9f66fc
--- /dev/null
@@ -0,0 +1,28 @@
+name: CodeQL
+
+on:
+  push:
+  pull_request:
+  schedule:
+    - cron: '30 12 * * 3'
+
+jobs:
+  analyse:
+
+    strategy:
+      matrix:
+        lang: [ 'cpp', 'python' ]
+
+    runs-on: ubuntu-latest
+
+    steps:
+    - uses: actions/checkout@v2
+
+    - uses: github/codeql-action/init@v1
+      with:
+        languages: ${{matrix.lang}}
+        queries: security-and-quality
+
+    - uses: github/codeql-action/autobuild@v1
+
+    - uses: github/codeql-action/analyze@v1