]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
GHA/codeql: limit cron job to the origin repository
authorViktor Szakats <commit@vsz.me>
Sun, 16 Nov 2025 12:14:04 +0000 (13:14 +0100)
committerViktor Szakats <commit@vsz.me>
Sun, 16 Nov 2025 18:51:20 +0000 (19:51 +0100)
To avoid running it in every fork, every week.

Closes #19552

.github/workflows/codeql.yml

index 5cbde8de054c1197b0cfa50b64758ef6298da624..d464562ab25306d54f0af50a2d2fc9d4fe696563 100644 (file)
@@ -39,6 +39,7 @@ permissions: {}
 
 jobs:
   gha_python:
+    if: ${{ github.repository_owner == 'curl' || github.event_name != 'schedule' }}
     name: 'GHA and Python'
     runs-on: ubuntu-latest
     permissions:
@@ -58,6 +59,7 @@ jobs:
         uses: github/codeql-action/analyze@e296a935590eb16afc0c0108289f68c87e2a89a5 # v4.30.7
 
   c:
+    if: ${{ github.repository_owner == 'curl' || github.event_name != 'schedule' }}
     name: 'C'
     runs-on: ${{ matrix.platform == 'Linux' && 'ubuntu-latest' || 'windows-2022' }}
     permissions: