[sr-dev] git:master:720a1ca1: Add CodeQL workflow for GitHub code scanning

Victor Seva linuxmaniac at torreviejawireless.org
Tue Dec 13 22:37:41 CET 2022


Module: kamailio
Branch: master
Commit: 720a1ca1e243937e009579747c747306d35625fd
URL: https://github.com/kamailio/kamailio/commit/720a1ca1e243937e009579747c747306d35625fd

Author: LGTM Migrator <lgtm-migrator at users.noreply.github.com>
Committer: Victor Seva <linuxmaniac at torreviejawireless.org>
Date: 2022-12-13T22:37:35+01:00

Add CodeQL workflow for GitHub code scanning

---

Added: .github/workflows/codeql.yml

---

Diff:  https://github.com/kamailio/kamailio/commit/720a1ca1e243937e009579747c747306d35625fd.diff
Patch: https://github.com/kamailio/kamailio/commit/720a1ca1e243937e009579747c747306d35625fd.patch

---

diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml
new file mode 100644
index 0000000000..bc0eebfbe4
--- /dev/null
+++ b/.github/workflows/codeql.yml
@@ -0,0 +1,62 @@
+name: "CodeQL"
+
+on:
+  push:
+    branches: [ "master", "3.1", "3.2", "3.3", "4.0", "4.1", "4.2", "4.3", "4.4", "5.0", "5.1", "5.2", "5.3", "5.4", "5.5", "5.6" ]
+  pull_request:
+    branches: [ "master" ]
+  schedule:
+    - cron: "35 19 * * 3"
+
+jobs:
+  analyze:
+    name: Analyze
+    runs-on: ubuntu-latest
+    permissions:
+      actions: read
+      contents: read
+      security-events: write
+
+    strategy:
+      fail-fast: false
+      matrix:
+        language: [ javascript, cpp, python ]
+
+    steps:
+      - name: Checkout
+        uses: actions/checkout at v3
+        with:
+          submodules: recursive
+
+      - name: Install Packages (cpp)
+        if: ${{ matrix.language == 'cpp' }}
+        run: |
+          sudo apt-get update
+          sudo apt-get install --yes bison default-libmysqlclient-dev flex libcurl4-openssl-dev libjansson-dev libhiredis-dev libevent-dev liblua5.1-0-dev libpcre3-dev libncurses5-dev libpq-dev libreadline-dev libssl-dev libunistring-dev libxml2-dev pkg-config python3 python3-dev uuid-dev zlib1g-dev
+
+      - name: Configure (cpp)
+        if: ${{ matrix.language == 'cpp' }}
+        run: make include_modules='app_lua app_python3 cnxcc db_mysql db_postgres db_redis dialplan http_client jansson lcr ndb_redis presence presence_xml presence_dialoginfo pua pua_dialoginfo topos_redis uuid websocket xmlops' cfg
+
+      - name: After Prepare (cpp)
+        if: ${{ matrix.language == 'cpp' }}
+        run: export PKG_CONFIG_PATH=$RUNNER_TEMP/usr/lib/pkgconfig:$PKG_CONFIG_PATH && echo "PKG_CONFIG_PATH=$PKG_CONFIG_PATH" >> $GITHUB_ENV
+
+      - name: Initialize CodeQL
+        uses: github/codeql-action/init at v2
+        with:
+          languages: ${{ matrix.language }}
+          queries: +security-and-quality
+
+      - name: Autobuild
+        uses: github/codeql-action/autobuild at v2
+        if: ${{ matrix.language == 'javascript' || matrix.language == 'python' }}
+
+      - name: Build cpp
+        if: ${{ matrix.language == 'cpp' }}
+        run: make all
+
+      - name: Perform CodeQL Analysis
+        uses: github/codeql-action/analyze at v2
+        with:
+          category: "/language:${{ matrix.language }}"




More information about the sr-dev mailing list