Skip to content

Commit

Permalink
fix(CI): Trigger CodeQL on everything except the "push" event for Dep…
Browse files Browse the repository at this point in the history
…endabot branches (#66)

* fix(CodeQL): Avoid triggering on the "push" event for Dependabot branches

* Run on everything else

* Update .github/workflows/codeql-analysis.yml

* feat(ci): Adding Permission

Co-authored-by: Nick Liffen <[email protected]>
  • Loading branch information
ScottBrenner and NickLiffen authored Jun 16, 2021
1 parent 65dbd88 commit 6b6dfaf
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,20 @@ name: "CodeQL"

on:
push:
branches: [ main, v* ]
pull_request:
branches: [ main, v* ]
branches-ignore: dependabot/**
schedule:
- cron: '38 18 * * 3'

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest

permissions:
actions: write
contents: read
pull-requests: read
security-events: write

strategy:
fail-fast: false
Expand Down

0 comments on commit 6b6dfaf

Please sign in to comment.