Bläddra i källkod

github: execute codeql on pkg-kamailio-docker container [skip ci]

Victor Seva 9 månader sedan
förälder
incheckning
4cbcec438c
1 ändrade filer med 8 tillägg och 7 borttagningar
  1. 8 7
      .github/workflows/codeql.yml

+ 8 - 7
.github/workflows/codeql.yml

@@ -19,19 +19,20 @@ jobs:
       matrix:
         language: [ javascript, cpp, python ]
 
+    container:
+      image: ghcr.io/kamailio/pkg-kamailio-docker:${{ github.ref_name }}-bookworm
+      credentials:
+        username: ${{ github.actor }}
+        password: ${{ secrets.GITHUB_TOKEN }}
+      volumes:
+        - ${{ github.workspace }}:/code
+
     steps:
       - name: Checkout
         uses: actions/checkout@v4
         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 libmicrohttpd-dev libxml2-dev pkg-config python3 python3-dev uuid-dev zlib1g-dev
-          sudo apt-get clean
-
       - 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