1
0
mirror of https://github.com/libssh2/libssh2.git synced 2025-11-17 04:22:32 +03:00

GHA/codeql: limit cron job to the origin repository (#1741)

To avoid running it in every fork, every week.
This commit is contained in:
Viktor Szakats
2025-11-16 23:14:22 +01:00
committed by GitHub
parent f61703cc98
commit 1045cfd033

View File

@@ -24,6 +24,7 @@ permissions: {}
jobs:
gha:
if: ${{ github.repository_owner == 'libssh2' || github.event_name != 'schedule' }}
name: 'GHA'
runs-on: ubuntu-latest
permissions:
@@ -43,6 +44,7 @@ jobs:
uses: github/codeql-action/analyze@f443b600d91635bebf5b0d9ebc620189c0d6fba5 # v4.30.8
c:
if: ${{ github.repository_owner == 'libssh2' || github.event_name != 'schedule' }}
name: 'C'
runs-on: ${{ matrix.platform == 'Linux' && 'ubuntu-latest' || 'windows-2022' }}
permissions: