ci: run codeql only in public repos
This commit is contained in:
parent
e313fc8cf8
commit
fb6fb9ccf9
5
.github/workflows/codeql.yml
vendored
5
.github/workflows/codeql.yml
vendored
@ -25,6 +25,9 @@ jobs:
|
||||
name: Analyze
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
# This job will only run if the repository is public
|
||||
if: ${{ github.event.repository.private == false }}
|
||||
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
@ -49,7 +52,9 @@ jobs:
|
||||
with:
|
||||
languages: ${{ matrix.language }}
|
||||
queries: +security-extended
|
||||
|
||||
- name: Autobuild
|
||||
uses: github/codeql-action/autobuild@294a9d92911152fe08befb9ec03e240add280cb3 # v3.26.8
|
||||
|
||||
- name: Perform CodeQL Analysis
|
||||
uses: github/codeql-action/analyze@294a9d92911152fe08befb9ec03e240add280cb3 # v3.26.8
|
||||
|
Loading…
x
Reference in New Issue
Block a user