Skip to content

Commit a838929

Browse files
julian-rischclaude
andcommitted
chore: add supply chain hardening via uv exclude-newer and pip cooldowns
- Add uv.toml with exclude-newer = "24 hours" so all uv pip installs skip packages published within the last day - Add Dependabot cooldown (default-days: 1) for github-actions and pip - Upgrade pip before each pip install step and add --uploaded-prior-to=P1D (pip 26.1 relative duration) to all direct pip install commands in CI Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent f567be3 commit a838929

66 files changed

Lines changed: 204 additions & 64 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/dependabot.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,12 @@ updates:
44
directory: '/'
55
schedule:
66
interval: 'daily'
7+
cooldown:
8+
default-days: 1
9+
10+
- package-ecosystem: 'pip'
11+
directory: '/'
12+
schedule:
13+
interval: 'daily'
14+
cooldown:
15+
default-days: 1

.github/workflows/CI_check_api_ref.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,9 @@ jobs:
8181
8282
- name: Install Hatch
8383
if: steps.changed.outputs.integrations != '[]'
84-
run: pip install hatch
84+
run: |
85+
python -m pip install --upgrade pip
86+
pip install hatch --uploaded-prior-to=P1D
8587
8688
- name: Generate API references
8789
if: steps.changed.outputs.integrations != '[]'

.github/workflows/CI_coverage_comment.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ on:
1515
- "Test / chroma"
1616
- "Test / cohere"
1717
- "Test / cometapi"
18+
- "Test / db2"
1819
- "Test / deepeval"
1920
- "Test / dspy"
2021
- "Test / elasticsearch"

.github/workflows/CI_docusaurus_sync.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@ jobs:
3232
python-version: "3.10"
3333

3434
- name: Install Hatch
35-
run: pip install hatch
35+
run: |
36+
python -m pip install --upgrade pip
37+
pip install hatch --uploaded-prior-to=P1D
3638
3739
- name: Get project folder
3840
id: pathfinder

.github/workflows/CI_license_compliance.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ jobs:
5353
5454
- name: Get direct dependencies from pyproject.toml files
5555
run: |
56-
pip install toml
56+
python -m pip install --upgrade pip
57+
pip install toml --uploaded-prior-to=P1D
5758
5859
# Determine the list of pyproject.toml files to process
5960
if [ "${{ github.event_name }}" = "schedule" ] || [ "${{ steps.changed-files.outputs.workflow_any_changed }}" = "true" ]; then

.github/workflows/CI_pypi_release.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@ jobs:
3838
python-version: "3.12"
3939

4040
- name: Install dependencies
41-
run: pip install hatch requests
41+
run: |
42+
python -m pip install --upgrade pip
43+
pip install hatch requests --uploaded-prior-to=P1D
4244
4345
- name: Validate version number
4446
run: python .github/utils/validate_version.py --tag ${{ github.ref_name }}

.github/workflows/aimlapi.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,9 @@ jobs:
7575
python-version: ${{ matrix.python-version }}
7676

7777
- name: Install Hatch
78-
run: pip install hatch
78+
run: |
79+
python -m pip install --upgrade pip
80+
pip install hatch --uploaded-prior-to=P1D
7981
8082
- name: Lint
8183
if: matrix.python-version == '3.10' && runner.os == 'Linux'

.github/workflows/amazon_bedrock.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,9 @@ jobs:
8585
python-version: ${{ matrix.python-version }}
8686

8787
- name: Install Hatch
88-
run: pip install hatch
88+
run: |
89+
python -m pip install --upgrade pip
90+
pip install hatch --uploaded-prior-to=P1D
8991
9092
- name: Lint
9193
if: matrix.python-version == '3.10' && runner.os == 'Linux'

.github/workflows/amazon_sagemaker.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,9 @@ jobs:
7474
python-version: ${{ matrix.python-version }}
7575

7676
- name: Install Hatch
77-
run: pip install hatch
77+
run: |
78+
python -m pip install --upgrade pip
79+
pip install hatch --uploaded-prior-to=P1D
7880
7981
- name: Lint
8082
if: matrix.python-version == '3.10' && runner.os == 'Linux'

.github/workflows/anthropic.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,9 @@ jobs:
7575
python-version: ${{ matrix.python-version }}
7676

7777
- name: Install Hatch
78-
run: pip install hatch
78+
run: |
79+
python -m pip install --upgrade pip
80+
pip install hatch --uploaded-prior-to=P1D
7981
8082
- name: Lint
8183
if: matrix.python-version == '3.10' && runner.os == 'Linux'

0 commit comments

Comments
 (0)