Python 3.9 is no longer in ubuntu-latest
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 72/100
Research direction
The issue points to the action requesting Python 3.9 on ubuntu-latest; start by reading the action's metadata and the step that selects the Python version, then compare it with the versions manifest linked in the report. Reproduce with a workflow that runs this action on ubuntu-latest, update the version to one available there, and check that the Bandit job completes. Done means the action no longer fails with the 3.9 not-found error on ubuntu-latest while remaining usable on supported runners.
Written by the indexing model from the issue text.
Description
Describe the bug
The latest version of this action (1.0.1) tries to use Python 3.9, but the ubuntu-latest does not include Python 3.9. GitHub Actions is switching to Ubuntu 26.04, which no longer includes Python 3.9.
To Reproduce
Steps to reproduce the behavior:
- Create a GitHub Actions job that runs two steps:
actions/checkoutfollowed byPyCQA/bandit-action.
Problem behavior
The job fails with the following error:
Error: The version '3.9' with architecture 'x64' was not found for Ubuntu 26.04.
Additional context
actions/runner-images#14748 talks about the change of ubuntu-latest to point to Ubuntu 26.04. The rollout began last week, and will finish in November.
For a list of what Python versions are on what Ubuntu versions, check out the file at https://raw.githubusercontent.com/actions/python-versions/main/versions-manifest.json: To get a list of versions, pipe the file through to jq .[].version. Piping it through to jq '.[] | select(.version == "3.9.25")' reveals that 3.9.25 is only available on Ubuntu releases 24.04 and 22.04.
#27 has also mentioned about the deprecated Python 3.9, so it's possible this Issue could be called a duplicate.
As a workaround, folks using this action can change their "Bandit Analyze" job to use the ubuntu-24.04 runner. At least, that worked for me!
- Dominant language
- No language data
- Stars
- 32
- Forks
- 16
- Avg merge
- 2h 23m
- Merged PRs (30d)
- 4
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from PyCQA/bandit-action
-
New tag/releaseOpenenhancement
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
PyCQA/bandit-action#31 ·
-
Action dependencies not pinned to full-length commit SHAsPossibly taken @lhoupert claimed this 243 days ago. Openenhancement
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
PyCQA/bandit-action#28 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 45/100
PyCQA/bandit-action#27 · 2 comments · 2 reactions ·
-
Bandit errors are masked as problems uploading the SARIF filePossibly taken @noqt claimed this 90 days ago. Openbug
Difficulty 3/5 1-2 days Newbie friendliness 58/100
PyCQA/bandit-action#16 · 2 comments · 5 reactions ·
-
bug
Difficulty 3/5 1-2 days Newbie friendliness 35/100
PyCQA/bandit-action#14 ·
All issues in PyCQA/bandit-action
Similar issues
-
enhancement priority:low status:queued
Difficulty 1/5 Under an hour Newbie friendliness 78/100
isaaclins/freesnitch#580 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 1-3 hours Newbie friendliness 62/100
NaturalIntelligence/fast-xml-parser#933 ·
Maintainers usually reply within 3 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
-
NullPointerException in PipelineStepApi.parseSteps prevents viewing stage logs when step title is nullPossibly taken @kccrcodes claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
jenkinsci/pipeline-graph-view-plugin#1587 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
NimblePros/Metronome#19 ·