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)
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