Skip to content

Fix GH workflow vulnerabilities - #1831

Merged
janfb merged 3 commits into
mainfrom
fix-ci-vulnerabilities
Apr 2, 2026
Merged

janfb merged 3 commits into
mainfrom
fix-ci-vulnerabilities

Conversation

@janfb

@janfb janfb commented Apr 2, 2026 •

Copy link
Copy Markdown
Contributor

In light of the recent supply chain attackes via litellm and npm packages, we need to audit our sbi release pipelines for potential vulnerabilities.

I used uv audit and zizmor to do so.

uv audit found vulnerable ipython versions we currently pin to. I therefore removed those together with a bunch of deprecated docs dependencies that we used with mkdocs.

zizmor found around 60 issues in out GH actions, e.g., places where we used plan tags for actions. Using a plain tag could be used by an attacker to insert a malicious piece of software into GH action we are using, without us noticing. Using explicit SHA hashes alongside the action tag prevents this.

I also set the default permissions of all actions to read and use access to secrets via env files instead of explicitly mentioning the secret.

@janfb
janfb requested a review from manuelgloeckler April 2, 2026 13:12
@codecov

codecov Bot commented Apr 2, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 88.01%. Comparing base (1797e77) to head (d452a57).
⚠️ Report is 1 commits behind head on main.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1831   +/-   ##
=======================================
  Coverage   88.01%   88.01%           
=======================================
  Files         140      140           
  Lines       12791    12791           
=======================================
  Hits        11258    11258           
  Misses       1533     1533           
Flag Coverage Δ
fast 82.77% <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

@manuelgloeckler manuelgloeckler left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Looks all reasonable to me, but I am also not really familiar with GH actions.

@janfb
janfb merged commit 093e303 into main Apr 2, 2026
9 checks passed
@janfb
janfb deleted the fix-ci-vulnerabilities branch April 2, 2026 13:43
janfb added a commit that referenced this pull request Jul 31, 2026
#1961)

* remove the legacy mkdocs site

Sphinx on readthedocs has been canonical since #1519. The mkdocs CI and
dependencies went in #1831. This removes the tracked mkdocs/ tree and the
stale build-dir entry in .gitignore.

* point the remaining links at readthedocs

The old GitHub Pages domain serves a frozen v0.25.0 build. This rewrites
the PyPI documentation URL, 16 README links, two links in the simple
interface, one tutorial link, and the proposals path. The mkdocstrings
reference anchors map to the Sphinx autosummary pages.

* fix codemeta.json: readthedocs link and invalid Person entry

The last Person entry had a bare ORCID string without the '@id' key, so
the file was not valid JSON.

* keep the sbi and BMBF logos in the Sphinx static tree

The two SVGs only ever lived under mkdocs/docs/static/, so retiring that tree
removed them. docs/logo.png survives for html_logo, but the vector master and the
BMBF funding logo had no other copy.

Move both into docs/_static/ and reference the BMBF logo from the Support section
of docs/credits.md, where the text acknowledgment already sits. The mkdocs credits
page carried the same image.

---------

Co-authored-by: Jan <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants