[BugFix] CodeQL: Add Python Config File (#7742)

* add python config file for codeql

* ci: run lint checks for CodeQL changes
This commit is contained in:
Danglewood
2026-10-01 16:08:53 +00:00
committed by GitHub
parent bbf1ab2020
commit 6c292746fe
3 changed files with 12 additions and 3 deletions

7
.github/codeql/python.yml vendored Normal file
View File

@@ -0,0 +1,7 @@
name: python
paths-ignore:
# Cookiecutter template sources contain Jinja placeholders ({{ ... }}, {% ... %})
# and are not valid Python until rendered, so CodeQL cannot parse them.
# The wildcard stands in for the literal "{{cookiecutter.project_tag}}" directory.
# The template's hooks/ are plain Python and stay in scope.
- 'cookiecutter/openbb_cookiecutter/template/*cookiecutter.project_tag*/**'

View File

@@ -13,11 +13,11 @@ name: "CodeQL Advanced"
on:
push:
branches: [ "develop", "PR-review", "gh-pages", "main", "v5" ]
branches: [ "develop", "PR-review", "gh-pages", "main" ]
paths-ignore:
- 'cookiecutter/**'
pull_request:
branches: [ "develop", "PR-review", "gh-pages", "main", "v5" ]
branches: [ "develop", "PR-review", "gh-pages", "main" ]
paths-ignore:
- 'cookiecutter/**'
schedule:
@@ -52,7 +52,7 @@ jobs:
config-file: ''
- language: python
build-mode: none
config-file: ''
config-file: .github/codeql/python.yml
- language: rust
build-mode: none
config-file: .github/codeql/desktop-only.yml

View File

@@ -13,6 +13,8 @@ on:
- '!openbb_platform/providers/**'
- '!openbb_platform/obbject_extensions/**'
- '.github/workflows/lint-openbb-platform.yml'
- '.github/codeql/**'
- '.github/workflows/codeql.yml'
merge_group:
types: [checks_requested]