Repository navigation
ci: scan the released Python 3.15 image - #541
Conversation
v0.18.0 is released with its Python 3.15 image, so drop the first-release entry for Python 3.15 and the skip logic that only it used; the 3.15 job now scans 0.18.0-py3.15 like the others. Closes #540 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Reviewer's guide (collapsed on small PRs)Reviewer's GuideUpdates the scheduled scan workflow so Python 3.15 is treated like the other supported versions and scans Flow diagram for scheduled Python image scanningflowchart TD
A[Scheduled scan workflow] --> B[Build matrix for Python 3.11 through 3.15]
B --> C[Resolve latest release tag]
C --> D[Construct Docker image tag]
D --> E[Scan image]
E --> F[elixircloud/foca:0.18.0-py3.15]
File-Level Changes
Assessment against linked issues
Possibly linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## dev #541 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 55 55
Lines 6667 6667
=========================================
Hits 6667 6667
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Hey - I've found 1 issue
Prompt for AI Agents
Please address the comments from this code review:
## Individual Comments
### Comment 1
<location path=".github/workflows/scan.yml" line_range="77-83" />
<code_context>
- [ "$(printf '%s\n' "$1" "$2" | sort -V | head -n 1)" = "$2" ]
- }
- if [ -n "${FIRST_RELEASE}" ] \
- && ! version_ge "${tag#v}" "${FIRST_RELEASE}"; then
- message="No image scanned: ${tag} has no Python ${PY_VERSION} image (first in ${FIRST_RELEASE})"
- echo "::notice title=No Python ${PY_VERSION} image yet::${message}"
- echo "${message}" >> "${GITHUB_STEP_SUMMARY}"
- echo "skip=true" >> "${GITHUB_OUTPUT}"
- exit 0
- fi
# Scheduled runs have no event payload, so the repository name is
# taken from `GITHUB_REPOSITORY` (`<owner>/<name>`)
</code_context>
<issue_to_address>
**Fork scans fail before Python 3.15 release**
When a fork uses the documented `DOCKERHUB_ORG` setup and its latest release predates its first Python 3.15 image, the image step now always constructs a Python 3.15 tag from the fork’s latest release, so Trivy fails to pull that tag when the fork has not published a Python 3.15 image. The scheduled scan then fails instead of skipping that variant.
Keep a release/image-availability check for Python 3.15, or otherwise skip that matrix entry when the fork has not published the image.
</issue_to_address>Sourcery assessment
Approval pending. 1 finding to address first.
Blocking findings: .github/workflows/scan.yml:83
Summary
v0.18.0 is released, so the scheduled scan no longer needs to skip the
Python 3.15 image. This removes the
first-release: "0.18.0"matrix entryfor Python 3.15 and everything only it used (the
FIRST_RELEASEenv var,the
version_gehelper and skip/notice branch, and theif:on the scanstep). The 3.15 job now scans
elixircloud/foca:0.18.0-py3.15like theother versions.
Closes #540
Verification
elixircloud/foca:0.18.0-py3.15exists (linux/amd64,pushed 2026-10-27T01:30Z);
v0.18.0is the latest final tag onmain.actionlint .github/workflows/scan.yml: no findings.zizmor --offline .github/workflows/scan.yml: one lowself-repositoryfinding on
uses: ./.github/actions/scan-image, which is pre-existing ondevand unrelated to this change.CI passed, run 40438332300; image/publishjobs skipped as intended on PRs).
Review
Light lane: CI-only change that removes a temporary skip in the scheduled
scan workflow; it touches no secrets, permissions or the release workflow.
I reviewed the diff myself; no reviewer subagents.
Declined review findings
fail the Python 3.15 scan instead of skipping. Declined: the entry was
temporary by design and compared against upstream's first release, not
the fork's; ci: scan the released Python 3.15 image #540 asks for its removal, and a failing scan is a correct
signal that an image is missing.
Open questions
None.
🤖 Generated with Claude Code