Codeql: enable PR check (#101392)
* Enable running a CodeQL check whenever someone opens a PR (for Go code) * Fetch main in the GHA so CodeQL can properly compare code changes * Try to fetch more of main to see if CodeQL can compare changes * Also trigger on push * Rename GHA * Use only one workflow for all languages that runs on each puch hook * Rename GHA * Removing owner from deleted GHA * Temporarily mark this GHA as not required for a PR to get merged * Always run the workflow * Mark action as non blocking
This commit is contained in:
@@ -3,12 +3,12 @@
|
||||
#
|
||||
# You may wish to alter this file to override the set of languages analyzed,
|
||||
# or to provide custom queries or build logic.
|
||||
name: "CodeQL"
|
||||
name: "CodeQL checks"
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
branches: [main, v*.*.*]
|
||||
branches: ['**'] # run on all branches
|
||||
paths-ignore:
|
||||
- '**/*.cue'
|
||||
- '**/*.json'
|
||||
@@ -25,6 +25,7 @@ jobs:
|
||||
analyze:
|
||||
name: Analyze
|
||||
runs-on: ubuntu-latest
|
||||
continue-on-error: true # doesn't block PRs from being merged if this fails
|
||||
if: github.repository == 'grafana/grafana'
|
||||
|
||||
strategy:
|
||||
|
||||
Reference in New Issue
Block a user