github: Ignore CodeQL analysis in private repos.

CodeQL only runs in public repos; private forks will otherwise error
their CI runs.
This commit is contained in:
Alex Vandiver 2021-09-30 16:16:31 -07:00 committed by Alex Vandiver
parent 66bd282d12
commit acbe7ae7a8
1 changed files with 1 additions and 0 deletions

View File

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