aboutsummaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2022-10-16 22:44:15 -0700
committerTakashi Kokubun <takashikkbn@gmail.com>2022-10-16 22:44:15 -0700
commitfb6a9656a114cc9246b657cb4fa63313ef266fe0 (patch)
tree21db977af2e13c91054ecea0cd2a4efe8cb08b4a /.github
parent0d7292ec734d49def118959d6a80588e7c0f7a39 (diff)
downloadruby-fb6a9656a114cc9246b657cb4fa63313ef266fe0.tar.gz
Do not run CodeQL on dependabot PRs
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/codeql-analysis.yml3
1 files changed, 2 insertions, 1 deletions
diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml
index f9fa0a7449..d812517c9f 100644
--- a/.github/workflows/codeql-analysis.yml
+++ b/.github/workflows/codeql-analysis.yml
@@ -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