Skip to content

build: add supply chain hardening via uv exclude-newer and pip uploaded-prior-to#474

Merged
julian-risch merged 2 commits into
mainfrom
build/supply-chain-guardrails
May 21, 2026
Merged

build: add supply chain hardening via uv exclude-newer and pip uploaded-prior-to#474
julian-risch merged 2 commits into
mainfrom
build/supply-chain-guardrails

Conversation

@julian-risch
Copy link
Copy Markdown
Member

@julian-risch julian-risch commented May 20, 2026

Related Issues

Given the short time window of typical supply-chain attacks, we should use uv exclude-newer and pip --uploaded-prior-to to improve security

Changes

pyproject.toml — uv exclude-newer guardrail:

  • Adds exclude-newer = "24 hours" under [tool.uv], which tells uv to ignore any package version published within the last 24 hours during resolution.
  • Adds exclude-newer-package exemption for haystack-pydoc-tools (first-party package) so freshly-published releases are always resolvable.

.github/dependabot.yml — Dependabot cooldown:

  • Adds cooldown.default-days: 1 to github-actions entries, so Dependabot won't open bump PRs for versions published less than 1 day ago.

--uploaded-prior-to — pip guardrail:

  • Upgrades pip before each pip install step and adds --uploaded-prior-to=P1D to all direct pip install commands in CI workflows (pip 26.1+).

How did you test it?

Checklist

  • I have read the contributors guidelines and the code of conduct.
  • I have updated the related issue with new insights and changes.
  • I added unit tests and updated the docstrings.
  • I've used one of the conventional commit types for my PR title: fix:, feat:, build:, chore:, ci:, docs:, style:, refactor:, perf:, test:.

🤖 Generated with Claude Code

julian-risch and others added 2 commits May 20, 2026 16:11
…ed-prior-to

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@julian-risch julian-risch marked this pull request as ready for review May 20, 2026 15:04
@julian-risch julian-risch requested a review from a team as a code owner May 20, 2026 15:04
@julian-risch julian-risch requested review from davidsbatista and removed request for a team May 20, 2026 15:04
@julian-risch julian-risch enabled auto-merge (squash) May 20, 2026 15:04
Copy link
Copy Markdown
Contributor

@davidsbatista davidsbatista left a comment

Choose a reason for hiding this comment

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

Looks good!l

@julian-risch julian-risch merged commit 149aae2 into main May 21, 2026
10 checks passed
@julian-risch julian-risch deleted the build/supply-chain-guardrails branch May 21, 2026 08:21
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