Do not run CodeQL on dependabot PRs
This commit is contained in:
parent
0d7292ec73
commit
fb6a9656a1
3
.github/workflows/codeql-analysis.yml
vendored
3
.github/workflows/codeql-analysis.yml
vendored
@ -25,7 +25,8 @@ jobs:
|
||||
|
||||
# CodeQL runs on ubuntu-latest and windows-latest
|
||||
runs-on: ubuntu-latest
|
||||
if: ${{ !contains(github.event.head_commit.message, '[DOC]') && !contains(github.event.pull_request.labels.*.name, 'Documentation') }}
|
||||
# CodeQL fails to run pull requests from dependabot due to missing write access to upload results.
|
||||
if: ${{ !contains(github.event.head_commit.message, '[DOC]') && !contains(github.event.pull_request.labels.*.name, 'Documentation') && github.event.head_commit.pusher.name != 'dependabot[bot]' }}
|
||||
|
||||
env:
|
||||
enable_install_doc: no
|
||||
|
Loading…
x
Reference in New Issue
Block a user