]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
codeQL: switch to testing merge commits 9926/head
authorPeter van Dijk <peter.van.dijk@powerdns.com>
Fri, 8 Jan 2021 13:49:09 +0000 (14:49 +0100)
committerPeter van Dijk <peter.van.dijk@powerdns.com>
Mon, 11 Jan 2021 12:50:11 +0000 (13:50 +0100)
.github/workflows/codeql-analysis.yml

index 041737071dd22c190af64d4a2d598ee8960f10a5..4223620ecdab69688f988b77248d9e5f92540b1b 100644 (file)
@@ -17,6 +17,7 @@ jobs:
         # Override automatic language detection by changing the below list
         # Supported options are ['csharp', 'cpp', 'go', 'java', 'javascript', 'python']
         language: ['cpp']
+        product: ['auth', 'rec', 'dnsdist']
         # Learn more...
         # https://docs.github.com/en/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#overriding-automatic-language-detection
 
@@ -28,11 +29,6 @@ jobs:
         # a pull request then we can checkout the head.
         fetch-depth: 2
 
-    # If this run was triggered by a pull request event, then checkout
-    # the head of the pull request instead of the merge commit.
-    - run: git checkout HEAD^2
-      if: ${{ github.event_name == 'pull_request' }}
-
     # Python is required for building the Authoritative server
     - uses: actions/setup-python@v2
       with:
@@ -100,6 +96,7 @@ jobs:
                 unixodbc-dev
 
     - name: Build auth
+      if: matrix.product == 'auth'
       run: |
         autoreconf -vfi
         ./configure --with-modules='bind geoip gmysql godbc gpgsql gsqlite3 ldap lmdb lua2 pipe random remote tinydns' --enable-tools --enable-ixfrdist --enable-dns-over-tls --enable-experimental-pkcs11 --with-libsodium --enable-lua-records CFLAGS='-O0' CXXFLAGS='-O0'
@@ -108,6 +105,7 @@ jobs:
         make -j8 -C pdns
 
     - name: Build dnsdist
+      if: matrix.product == 'dnsdist'
       run: |
         cd pdns/dnsdistdist
         autoreconf -vfi
@@ -117,6 +115,7 @@ jobs:
         make -j4 dnsdist
 
     - name: Build recursor
+      if: matrix.product == 'rec'
       run: |
         cd pdns/recursordist
         autoreconf -vfi