Run CodeQL on push, pull request, workflow dispatch and update Python version
This commit is contained in:
9
.github/workflows/codeql.yml
vendored
9
.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
|
||||
@ -26,3 +31,5 @@ jobs:
|
||||
queries: security-extended,security-and-quality
|
||||
setup-python-dependencies: false
|
||||
- uses: github/codeql-action/analyze@v2
|
||||
with:
|
||||
category: "/language:${{matrix.language}}"
|
||||
|
Reference in New Issue
Block a user