Browse Source

fix: codeql should not rebuild the world on every one (#5540)

Signed-off-by: Gergely Brautigam <182850+Skarlso@users.noreply.github.com>
Gergely Brautigam 5 months ago
parent
commit
f947d83899
1 changed files with 3 additions and 1 deletions
  1. 3 1
      .github/workflows/codeql.yml

+ 3 - 1
.github/workflows/codeql.yml

@@ -31,7 +31,9 @@ jobs:
         egress-policy: audit
     - name: Checkout repository
       uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
-
+    # Without this, codeql scan builds databases separately for all modules during every run.
+    - name: Run go work
+      run: make go-work
     # Initializes the CodeQL tools for scanning.
     - name: Initialize CodeQL
       uses: github/codeql-action/init@0499de31b99561a6d14a36a5f662c2a54f91beee # v3.29.5