]> git.ipfire.org Git - thirdparty/libcgroup.git/commitdiff
github: Add a code security scan
authorTom Hromatka <tom.hromatka@oracle.com>
Wed, 19 Jan 2022 17:46:50 +0000 (10:46 -0700)
committerTom Hromatka <tom.hromatka@oracle.com>
Wed, 19 Jan 2022 17:46:50 +0000 (10:46 -0700)
Add a code security scan, CodeQL to the Github Actions
continuous integration.

Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
Reviewed-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
(cherry picked from commit 41a8fd8e68f77dc99b5bb086bf9d138a2ea02d46)

.github/workflows/continuous-integration.yml

index 9a7258bab4bf7481aef7ab487d03b78350273067..50ff3fcc7b87b12b464316d33269601b15123fd2 100644 (file)
@@ -23,6 +23,22 @@ name: Continuous Integration
 on: ["push", "pull_request"]
 
 jobs:
+  codeql:
+    name: CodeQL
+    runs-on: ubuntu-latest
+
+    steps:
+    - uses: actions/checkout@v2
+      with:
+        submodules: false
+    - uses: github/codeql-action/init@v1
+      with:
+        languages: cpp, python
+    - name: Initialize the directory
+      uses: ./.github/actions/setup-libcgroup
+    - name: Perform CodeQL Analysis
+      uses: github/codeql-action/analyze@v1
+
   unittests:
     name: Unit Tests
     runs-on: ubuntu-latest