Skip to content

Commit ec7b468

Browse files
julian-rischclaude
andauthored
build: add supply chain hardening via uv exclude-newer and pip uploaded-prior-to (#3258)
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 3452e7d commit ec7b468

65 files changed

Lines changed: 209 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: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,13 @@ updates:
44
directory: '/'
55
schedule:
66
interval: 'daily'
7+
cooldown:
8+
default-days: 1
9+
10+
- package-ecosystem: 'pip'
11+
directories:
12+
- 'integrations/*'
13+
schedule:
14+
interval: 'daily'
15+
cooldown:
16+
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_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'

.github/workflows/arcadedb.yml

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

8282
- name: Install Hatch
83-
run: pip install hatch
83+
run: |
84+
python -m pip install --upgrade pip
85+
pip install hatch --uploaded-prior-to=P1D
8486
8587
- name: Lint
8688
if: matrix.python-version == '3.10' && runner.os == 'Linux'

0 commit comments

Comments
 (0)