Skip to content

Commit 7c675e8

Browse files
committed
codeql-analysis: Ignore CodeQL analysis in private repositories.
This is not a frequent problem, but causes CI to fail since CodeQL only runs in public repositories.
1 parent 8b6cdf8 commit 7c675e8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/workflows/codeql-analysis.yml

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ permissions:
2020
jobs:
2121
analyse:
2222
name: Analyse
23+
if: ${{!github.event.repository.private}}
2324
permissions:
2425
actions: read
2526
contents: read

0 commit comments

Comments
 (0)