]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
added look up for binaries step 13608/head
authorromeroalx <alexis.romero@open-xchange.com>
Mon, 4 Dec 2023 15:39:02 +0000 (16:39 +0100)
committerromeroalx <alexis.romero@open-xchange.com>
Tue, 12 Dec 2023 15:23:04 +0000 (16:23 +0100)
.github/workflows/codeql-analysis.yml

index 50f53025ad7c7377103836bff12be3de6a88bf78..55538e2c598fff0cd9e3c617b1c79c1f0e6b0ba7 100644 (file)
@@ -250,7 +250,7 @@ jobs:
 
   check-clang-tidy:
     needs: analyze
-    runs-on: ubuntu-20.04
+    runs-on: ubuntu-22.04
     name: Check whether clang-tidy succeeded
     steps:
       - run: |
@@ -266,3 +266,14 @@ jobs:
             echo "::error::Rec clang-tidy failed"
             exit 1
           fi
+
+  check-for-binaries:
+    runs-on: ubuntu-22.04
+    name: Force failure in case there are binaries present in a pull request
+    if: ${{ github.event_name == 'pull_request' }}
+    steps:
+    - name: Checkout repository
+      uses: actions/checkout@v4
+      with:
+        fetch-depth: 2
+    - run: if [[ "$(file -i --dereference $(git diff --name-only HEAD^..HEAD) | grep binary | grep -v 'image/' | grep -v 'inode/x-empty')" != "" ]]; then exit 1; fi