Skip to content

Commit 0b9bc19

Browse files
author
Peter Bengtsson
authored
Run CodeQL analysis on pushes to the main branch too (#46233)
1 parent 851b9d0 commit 0b9bc19

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/codeql.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ on:
1111
paths:
1212
- '**/*.js'
1313
- '.github/workflows/codeql.yml'
14+
# This is so that when CodeQL runs on a pull request, it can compare
15+
# against the state of the base branch.
16+
push:
17+
branches:
18+
- main
1419

1520
permissions:
1621
actions: read
@@ -33,3 +38,9 @@ jobs:
3338
languages: javascript # comma separated list of values from {go, python, javascript, java, cpp, csharp, ruby}
3439
- uses: github/codeql-action/analyze@32dc499307d133bb5085bae78498c0ac2cf762d5
3540
continue-on-error: true
41+
42+
- uses: ./.github/actions/slack-alert
43+
if: ${{ failure() && github.event_name != 'pull_request' }}
44+
with:
45+
slack_channel_id: ${{ secrets.DOCS_ALERTS_SLACK_CHANNEL_ID }}
46+
slack_token: ${{ secrets.SLACK_DOCS_BOT_TOKEN }}

0 commit comments

Comments
 (0)