GHA-219 Fix notify-slack failing on runners without system Python#127
Conversation
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
SummaryFixes the notify-slack action to work on modern GitHub runners by adding an explicit setup-python step and installing dependencies into a local venv. This replaces reliance on unavailable system Python and works around PEP 668 restrictions that prevent bare pip install on runner images. What reviewers should knowReview focus: verify the venv setup is complete (check that both pip install and python execution use the venv binaries). The solution is straightforward — the pinned setup-python version is good for reproducibility, and the
|
SonarQube reviewer guide
|




Summary
Set up Pythonstep (pinnedactions/setup-python@v5.6.0) tonotify-slack/action.ymlpythonandpipexecutables throughoutContext
GHA-219 PR #125 replaced the Docker-based Slack notifier with a Python script. However, the action relied on the system
pythonbinary (not present on newer GitHub runners) and barepip install(blocked by PEP 668 on Debian-based runners that enforce the externally-managed-environment restriction).Using
setup-python+ a venv makes the action fully self-contained and runner-agnostic.Fixes: https://sonarsource.atlassian.net/browse/GHA-219
🤖 Generated with Claude Code