github: Ignore CodeQL analysis in private repos.

CodeQL only runs in public repos; private forks will otherwise error
their CI runs.

(cherry picked from commit acbe7ae7a8)
This commit is contained in:
Alex Vandiver
2021-09-30 16:16:31 -07:00
committed by Alex Vandiver
parent 09bfd485e9
commit 313bcfd02a

View File

@@ -4,6 +4,7 @@ on: [push, pull_request]
jobs:
CodeQL:
if: ${{!github.event.repository.private}}
runs-on: ubuntu-latest
steps: