mirror of
https://github.com/grafana/grafana.git
synced 2024-12-01 13:09:22 -06:00
3e9dfcd730
* Do not run CodeQL analysis when updating .cue file * Remove autobuild step for CodeQL workflow as unecessary * Add specialized CodeQL workflow * Updated main CodeQL workflow to not run on PRs * Simplify CodeQL analysis on PR * Add .tsx file format to JS CodeQL analysis match
30 lines
648 B
YAML
30 lines
648 B
YAML
name: "CodeQL for PR / python"
|
|
|
|
on:
|
|
pull_request:
|
|
branches: [main]
|
|
paths:
|
|
- '**/*.py'
|
|
|
|
jobs:
|
|
analyze:
|
|
name: Analyze
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v2
|
|
with:
|
|
# We must fetch at least the immediate parents so that if this is
|
|
# a pull request then we can checkout the head.
|
|
fetch-depth: 2
|
|
|
|
# Initializes the CodeQL tools for scanning.
|
|
- name: Initialize CodeQL
|
|
uses: github/codeql-action/init@v1
|
|
with:
|
|
languages: "python"
|
|
|
|
- name: Perform CodeQL Analysis
|
|
uses: github/codeql-action/analyze@v1
|