grafana/.github/workflows/pr-codeql-analysis-python.yml
Armand Grillet 3e9dfcd730
Optimize CodeQL workflow (#47095)
* 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
2022-04-01 16:40:25 +02:00

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