Run CodeQL on push, pull request and workflow dispatch and update Python version
This commit is contained in:
parent
dbd58c10e2
commit
fc92bb8b9e
1 changed files with 6 additions and 2 deletions
8
.github/workflows/codeql.yml
vendored
8
.github/workflows/codeql.yml
vendored
|
|
@ -3,6 +3,11 @@ name: "CodeQL"
|
|||
on:
|
||||
schedule:
|
||||
- cron: '33 11 * * 5'
|
||||
push:
|
||||
branches: [ master ]
|
||||
pull_request:
|
||||
branches: [ master ]
|
||||
workflow_dispatch:
|
||||
jobs:
|
||||
analyze:
|
||||
name: Analyze
|
||||
|
|
@ -16,7 +21,7 @@ jobs:
|
|||
- run: pipx install poetry
|
||||
- uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: '3.10'
|
||||
python-version: '3.11'
|
||||
cache: 'poetry'
|
||||
- run: poetry install
|
||||
- run: echo "CODEQL_PYTHON=$(poetry run which python)" >> $GITHUB_ENV
|
||||
|
|
@ -25,7 +30,6 @@ jobs:
|
|||
languages: 'python'
|
||||
queries: security-extended,security-and-quality
|
||||
setup-python-dependencies: false
|
||||
|
||||
- uses: github/codeql-action/analyze@v2
|
||||
with:
|
||||
category: "/language:${{matrix.language}}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue