mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-10-27 04:31:13 +00:00
[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:
7
.github/codeql/python.yml
vendored
Normal file
7
.github/codeql/python.yml
vendored
Normal 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*/**'
|
||||||
6
.github/workflows/codeql.yml
vendored
6
.github/workflows/codeql.yml
vendored
@@ -13,11 +13,11 @@ name: "CodeQL Advanced"
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ "develop", "PR-review", "gh-pages", "main", "v5" ]
|
branches: [ "develop", "PR-review", "gh-pages", "main" ]
|
||||||
paths-ignore:
|
paths-ignore:
|
||||||
- 'cookiecutter/**'
|
- 'cookiecutter/**'
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ "develop", "PR-review", "gh-pages", "main", "v5" ]
|
branches: [ "develop", "PR-review", "gh-pages", "main" ]
|
||||||
paths-ignore:
|
paths-ignore:
|
||||||
- 'cookiecutter/**'
|
- 'cookiecutter/**'
|
||||||
schedule:
|
schedule:
|
||||||
@@ -52,7 +52,7 @@ jobs:
|
|||||||
config-file: ''
|
config-file: ''
|
||||||
- language: python
|
- language: python
|
||||||
build-mode: none
|
build-mode: none
|
||||||
config-file: ''
|
config-file: .github/codeql/python.yml
|
||||||
- language: rust
|
- language: rust
|
||||||
build-mode: none
|
build-mode: none
|
||||||
config-file: .github/codeql/desktop-only.yml
|
config-file: .github/codeql/desktop-only.yml
|
||||||
|
|||||||
2
.github/workflows/lint-openbb-platform.yml
vendored
2
.github/workflows/lint-openbb-platform.yml
vendored
@@ -13,6 +13,8 @@ on:
|
|||||||
- '!openbb_platform/providers/**'
|
- '!openbb_platform/providers/**'
|
||||||
- '!openbb_platform/obbject_extensions/**'
|
- '!openbb_platform/obbject_extensions/**'
|
||||||
- '.github/workflows/lint-openbb-platform.yml'
|
- '.github/workflows/lint-openbb-platform.yml'
|
||||||
|
- '.github/codeql/**'
|
||||||
|
- '.github/workflows/codeql.yml'
|
||||||
merge_group:
|
merge_group:
|
||||||
types: [checks_requested]
|
types: [checks_requested]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user