Skip to content

Lockdown package installs#3203

Merged
gantoine merged 1 commit intomasterfrom
lockdown-package-installs
Mar 31, 2026
Merged

Lockdown package installs#3203
gantoine merged 1 commit intomasterfrom
lockdown-package-installs

Conversation

@gantoine
Copy link
Copy Markdown
Member

Description
Explain the changes or enhancements you are proposing with this pull request.

Added rules to exclude packages newer then the last 7 days, to hopefully mitigate the chance of getting pwned.

Checklist
Please check all that apply.

  • I've tested the changes locally
  • I've updated relevant comments
  • I've assigned reviewers for this PR
  • I've added unit tests that cover the changes

Copilot AI review requested due to automatic review settings March 31, 2026 12:22
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR aims to reduce supply-chain risk during dependency resolution by preventing installation of packages published within the last 7 days.

Changes:

  • Configure uv to exclude packages newer than 7 days and record that policy in uv.lock.
  • Downgrade several Python dependencies in uv.lock to versions older than the exclusion window.
  • Add frontend npm configuration intended to reduce risk during installs, and update package-lock.json accordingly.

Reviewed changes

Copilot reviewed 2 out of 4 changed files in this pull request and generated 2 comments.

File Description
uv.lock Records uv resolution options (exclude-newer/exclude-newer-span) and pins dependencies to versions older than the cutoff.
pyproject.toml Adds [tool.uv] exclude-newer = "7 days" to enforce the policy during resolution.
frontend/package-lock.json Updates resolved versions/hashes for brace-expansion entries.
frontend/.npmrc Adds npm install hardening settings (min-release-age, ignore-scripts).
Files not reviewed (1)
  • frontend/package-lock.json: Language not supported

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@gantoine gantoine merged commit 9574030 into master Mar 31, 2026
11 checks passed
@gantoine gantoine deleted the lockdown-package-installs branch March 31, 2026 12:28
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