summaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2022-10-20 15:20:30 +0200
committerBenBE <BenBE@geshi.org>2022-10-20 22:29:28 +0200
commitfc5c622ce3076034831082094d30590bc04f92d6 (patch)
tree1966e9e958f26d1f4d8366a23b83e23fcb9dc9c1 /.github
parent2f387af6c0a8715e07686740bccc6e82bd601184 (diff)
CI: add GitHub CodeQL action
LGTM.com will shutdown in December 2022, use CodeQL instead.
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/codeql-analysis.yml49
1 files changed, 49 insertions, 0 deletions
diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml
new file mode 100644
index 00000000..17356b67
--- /dev/null
+++ b/.github/workflows/codeql-analysis.yml
@@ -0,0 +1,49 @@
+name: "CodeQL"
+
+on:
+ push:
+ branches: [main]
+ pull_request:
+ branches: [main]
+ schedule:
+ - cron: '0 1 * * 0'
+
+permissions:
+ contents: read
+
+jobs:
+ analyze:
+ name: Analyze
+ runs-on: ubuntu-latest
+ permissions:
+ actions: read
+ security-events: write
+
+ env:
+ # Enable format attributes in ncurses headers
+ # Enable fortified memory/string handling
+ CPPFLAGS: -DGCC_PRINTF -DGCC_SCANF -D_FORTIFY_SOURCE=2
+
+ steps:
+ - name: Checkout Repository
+ uses: actions/checkout@v3
+
+ - name: Initialize CodeQL
+ uses: github/codeql-action/init@v2
+ with:
+ languages: cpp
+
+ - name: Install Dependencies
+ run: sudo apt-get install --no-install-recommends libncursesw5-dev libhwloc-dev libnl-3-dev libnl-genl-3-dev libsensors4-dev libcap-dev
+
+ - name: Bootstrap
+ run: ./autogen.sh
+
+ - name: Configure
+ run: ./configure --enable-werror --enable-openvz --enable-vserver --enable-ancient-vserver --enable-unicode --enable-hwloc --enable-delayacct --enable-sensors --enable-capabilities
+
+ - name: Build
+ run: make
+
+ - name: Perform CodeQL Analysis
+ uses: github/codeql-action/analyze@v2

© 2014-2024 Faster IT GmbH | imprint | privacy policy