Skip to content

Commit fc9a6f7

Browse files
authored
build: add pip supply-chain hardening to CI workflows
build: add pip supply-chain hardening to CI workflows
2 parents 05b2666 + b52592f commit fc9a6f7

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

‎.github/workflows/release.yml‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@ jobs:
2424
python-version: "3.13"
2525

2626
- name: Install Hatch
27-
run: pip install hatch
27+
run: |
28+
python -m pip install --upgrade pip
29+
pip install hatch --uploaded-prior-to=P1D
2830
2931
- name: Build
3032
run: hatch build

‎.github/workflows/test.yml‎

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

3838
- name: Install Hatch
39-
run: pip install hatch
39+
run: |
40+
python -m pip install --upgrade pip
41+
pip install hatch --uploaded-prior-to=P1D
4042
4143
- name: Lint
4244
if: matrix.python-version == '3.10' && runner.os == 'Linux'

0 commit comments

Comments
 (0)