fix(python-security-checks): use custom runner image instead of python slim
python:3.14-slim has no Node.js so actions/checkout@v4 fails with 'node: executable file not found in PATH'. Switch to the same gitea_runner_python314 custom image used by python-checks.yml which has both Python 3.14 and Node.js. Drop the python_version input as it no longer drives the container selection. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -3,9 +3,6 @@ name: Reusable Python Security Checks
|
|||||||
on:
|
on:
|
||||||
workflow_call:
|
workflow_call:
|
||||||
inputs:
|
inputs:
|
||||||
python_version:
|
|
||||||
type: string
|
|
||||||
default: "3.14"
|
|
||||||
install_command:
|
install_command:
|
||||||
type: string
|
type: string
|
||||||
default: 'python -m pip install "bandit[toml]"'
|
default: 'python -m pip install "bandit[toml]"'
|
||||||
@@ -15,12 +12,18 @@ on:
|
|||||||
working_directory:
|
working_directory:
|
||||||
type: string
|
type: string
|
||||||
default: "."
|
default: "."
|
||||||
|
secrets:
|
||||||
|
REGISTRY_USERNAME: { required: true }
|
||||||
|
REGISTRY_PASSWORD: { required: true }
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
security:
|
security:
|
||||||
runs-on: docker
|
runs-on: docker
|
||||||
container:
|
container:
|
||||||
image: python:${{ inputs.python_version }}-slim
|
image: gitea.tech-buddy.at/bitbuddydev/gitea_runner_python314:dev-bda315b82bb23d83065b77d91fedf0e20d9accf1
|
||||||
|
credentials:
|
||||||
|
username: ${{ secrets.REGISTRY_USERNAME }}
|
||||||
|
password: ${{ secrets.REGISTRY_PASSWORD }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
|
|||||||
Reference in New Issue
Block a user