Run CodeQL on push, pull request, workflow dispatch and update Python version

This commit is contained in:
2022-12-18 00:44:36 +01:00
parent de5823d104
commit e7b8f2364a

View File

@ -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}}"