]> git.ipfire.org Git - thirdparty/dnspython.git/commitdiff
try again to fix CodeQL
authorBob Halley <halley@dnspython.org>
Sun, 2 Oct 2022 17:03:59 +0000 (10:03 -0700)
committerBob Halley <halley@dnspython.org>
Sun, 2 Oct 2022 17:03:59 +0000 (10:03 -0700)
.github/workflows/codeql-analysis.yml

index 239890c982983f89cdb7833be675ec1d2a551d19..3f887fea1854214cf81c3cb719e967e2d9b0227c 100644 (file)
@@ -42,12 +42,6 @@ jobs:
     - name: Checkout repository
       uses: actions/checkout@v3
 
-    - name: Install dependencies
-      run: |
-        python -m pip install --upgrade pip
-        python -m pip install poetry
-        poetry install -E dnssec -E doh -E idna -E trio -E curio
-
     # Initializes the CodeQL tools for scanning.
     - name: Initialize CodeQL
       uses: github/codeql-action/init@v2
@@ -58,5 +52,15 @@ jobs:
         # Prefix the list here with "+" to use these queries and those in the config file.
         # queries: ./path/to/local/query, your-org/your-repo/queries@main
 
+    # I'm not sure why the same recipe we use to build in normal CI does not work
+    # for CodeQL any more, but the error it logs is apparently about gnome-keyring
+    # not being installed, so we will try to install it.
+    - name: Install dependencies
+      run: |
+        sudo apt install -y gnome-keyring
+        python -m pip install --upgrade pip
+        python -m pip install poetry
+        poetry install -E dnssec -E doh -E idna -E trio -E curio
+
     - name: Perform CodeQL Analysis
       uses: github/codeql-action/analyze@v2