1
0
mirror of synced 2025-12-30 03:01:36 -05:00

Run CodeQL analysis on pushes to the main branch too (#46233)

This commit is contained in:
Peter Bengtsson
2023-11-16 14:44:43 -05:00
committed by GitHub
parent 851b9d02dd
commit 0b9bc193f3

View File

@@ -11,6 +11,11 @@ on:
paths:
- '**/*.js'
- '.github/workflows/codeql.yml'
# This is so that when CodeQL runs on a pull request, it can compare
# against the state of the base branch.
push:
branches:
- main
permissions:
actions: read
@@ -33,3 +38,9 @@ jobs:
languages: javascript # comma separated list of values from {go, python, javascript, java, cpp, csharp, ruby}
- uses: github/codeql-action/analyze@32dc499307d133bb5085bae78498c0ac2cf762d5
continue-on-error: true
- uses: ./.github/actions/slack-alert
if: ${{ failure() && github.event_name != 'pull_request' }}
with:
slack_channel_id: ${{ secrets.DOCS_ALERTS_SLACK_CHANNEL_ID }}
slack_token: ${{ secrets.SLACK_DOCS_BOT_TOKEN }}