Skip to content

Commit

Permalink
Fix CodeQL analysis GitHub action (#19)
Browse files Browse the repository at this point in the history
Only run the CodeQL analysis workflow on the "pull_request" event and avoid triggering it on the "push" event for Dependabot branches because workflows triggered by Dependabot on the "push" event run with read-only access, and uploading Code Scanning results requires write access.
  • Loading branch information
eliflores authored May 27, 2021
1 parent cdc5b7d commit 20611f0
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
name: "CodeQL"

on:
push:
branches: [main]
pull_request:
# The branches below must be a subset of the branches above
branches: [main]
schedule:
- cron: '0 19 * * 2'

jobs:
analyze:
Expand Down

0 comments on commit 20611f0

Please sign in to comment.