From bc4c1901384f725a7e4deb30cbef930449e872c7 Mon Sep 17 00:00:00 2001 From: Bob Halley Date: Sun, 2 Oct 2022 10:03:59 -0700 Subject: [PATCH] try again to fix CodeQL --- .github/workflows/codeql-analysis.yml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 239890c9..3f887fea 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -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 -- 2.47.3