mirror of
https://github.com/Second-Hand-Friends/kleinanzeigen-bot.git
synced 2026-03-12 02:31:45 +01:00
update GHA workflows
This commit is contained in:
34
.github/workflows/codeql-analysis.yml
vendored
34
.github/workflows/codeql-analysis.yml
vendored
@@ -28,38 +28,39 @@ env:
|
||||
PYTHON_VERSION: "3.12"
|
||||
|
||||
jobs:
|
||||
|
||||
###########################################################
|
||||
analyze:
|
||||
name: Analyze
|
||||
###########################################################
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
security-events: write
|
||||
|
||||
steps:
|
||||
- name: Git Checkout
|
||||
uses: actions/checkout@v4 #https://github.com/actions/checkout
|
||||
- name: Git checkout
|
||||
uses: actions/checkout@v4 # https://github.com/actions/checkout
|
||||
|
||||
|
||||
- uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: "${{ env.PYTHON_VERSION }}"
|
||||
|
||||
- name: Install python dependencies
|
||||
|
||||
- uses: actions/cache@v4
|
||||
with:
|
||||
path: __pypackages__
|
||||
key: ${{ runner.os }}-pypackages-${{ hashFiles('pdm.lock') }}
|
||||
|
||||
|
||||
- name: "Install: Python dependencies"
|
||||
run: |
|
||||
set -eux
|
||||
|
||||
python --version
|
||||
|
||||
python -m pip install --upgrade pip
|
||||
pip install --upgrade pdm
|
||||
pdm install -v
|
||||
|
||||
# pin packaging to 21.3 for now to prevent: packaging.specifiers.InvalidSpecifier: Invalid specifier: '>=3.4.*'
|
||||
# see https://github.com/pdm-project/pdm/issues/1556
|
||||
pip install --upgrade pdm packaging==21.3
|
||||
|
||||
# don't install dependencies for now, as this makes CodeQL run forever
|
||||
# pdm install -v
|
||||
|
||||
# Set the `CODEQL-PYTHON` environment variable to the Python executable
|
||||
# that includes the dependencies
|
||||
echo "CODEQL_PYTHON=$(which python)" >> $GITHUB_ENV
|
||||
|
||||
- name: Initialize CodeQL
|
||||
uses: github/codeql-action/init@v3
|
||||
@@ -67,5 +68,6 @@ jobs:
|
||||
languages: python
|
||||
setup-python-dependencies: false
|
||||
|
||||
|
||||
- name: Perform CodeQL Analysis
|
||||
uses: github/codeql-action/analyze@v3 # https://github.com/github/codeql-action
|
||||
uses: github/codeql-action/analyze@v3 # https://github.com/github/codeql-action
|
||||
|
||||
Reference in New Issue
Block a user