Skip to content

Commit 2da02a7

Browse files
authored
Merge pull request #202 from durable-workflow/fix/237-effective-ci-trust
ci: select verified trust for dependency and browser downloads
2 parents 3dd5cf5 + b75f6a3 commit 2da02a7

4 files changed

Lines changed: 38 additions & 10 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
with:
5151
python-version: "3.13"
5252
- name: Bootstrap patched pip trust
53-
uses: durable-workflow/.github/.github/actions/bootstrap-patched-pip@ff93e15dd3d3aa0b5ba8991fe5101a9e1be49c10 # patched-pip
53+
uses: durable-workflow/.github/.github/actions/bootstrap-patched-pip@75587fc33ff40c34f32ef777293dad56bb6f48c7 # clean-trust
5454
- name: Install policy dependencies
5555
run: python -m pip install PyYAML==6.0.2
5656
- name: Require centrally approved immutable action commits
@@ -73,7 +73,9 @@ jobs:
7373
with:
7474
python-version: "3.12"
7575
- name: Bootstrap patched pip trust
76-
uses: durable-workflow/.github/.github/actions/bootstrap-patched-pip@ff93e15dd3d3aa0b5ba8991fe5101a9e1be49c10 # patched-pip
76+
uses: durable-workflow/.github/.github/actions/bootstrap-patched-pip@75587fc33ff40c34f32ef777293dad56bb6f48c7 # clean-trust
77+
with:
78+
clients: pip,python
7779
- name: Install the SDK
7880
run: pip install -e .
7981
- name: Require durable replay and codec evidence
@@ -97,7 +99,9 @@ jobs:
9799
with:
98100
python-version: "3.12"
99101
- name: Bootstrap patched pip trust
100-
uses: durable-workflow/.github/.github/actions/bootstrap-patched-pip@ff93e15dd3d3aa0b5ba8991fe5101a9e1be49c10 # patched-pip
102+
uses: durable-workflow/.github/.github/actions/bootstrap-patched-pip@75587fc33ff40c34f32ef777293dad56bb6f48c7 # clean-trust
103+
with:
104+
clients: pip,python
101105
- run: pip install -e '.[dev]'
102106
- run: ruff check src/ tests/
103107
- run: mypy src/durable_workflow/
@@ -114,7 +118,9 @@ jobs:
114118
with:
115119
python-version: "3.12"
116120
- name: Bootstrap patched pip trust
117-
uses: durable-workflow/.github/.github/actions/bootstrap-patched-pip@ff93e15dd3d3aa0b5ba8991fe5101a9e1be49c10 # patched-pip
121+
uses: durable-workflow/.github/.github/actions/bootstrap-patched-pip@75587fc33ff40c34f32ef777293dad56bb6f48c7 # clean-trust
122+
with:
123+
clients: pip,python
118124
- run: pip install -e .
119125
- name: Measure the bounded absolute throughput signal
120126
continue-on-error: true
@@ -143,7 +149,9 @@ jobs:
143149
with:
144150
python-version: ${{ matrix.python-version }}
145151
- name: Bootstrap patched pip trust
146-
uses: durable-workflow/.github/.github/actions/bootstrap-patched-pip@ff93e15dd3d3aa0b5ba8991fe5101a9e1be49c10 # patched-pip
152+
uses: durable-workflow/.github/.github/actions/bootstrap-patched-pip@75587fc33ff40c34f32ef777293dad56bb6f48c7 # clean-trust
153+
with:
154+
clients: pip,python
147155
- run: pip install -e '.[dev]'
148156
- name: Run unit tests with stalled-thread diagnostics
149157
id: unit_tests
@@ -178,7 +186,9 @@ jobs:
178186
with:
179187
python-version: "3.12"
180188
- name: Bootstrap patched pip trust
181-
uses: durable-workflow/.github/.github/actions/bootstrap-patched-pip@ff93e15dd3d3aa0b5ba8991fe5101a9e1be49c10 # patched-pip
189+
uses: durable-workflow/.github/.github/actions/bootstrap-patched-pip@75587fc33ff40c34f32ef777293dad56bb6f48c7 # clean-trust
190+
with:
191+
clients: pip,python
182192
- run: pip install build twine
183193
- run: python -m build
184194
- name: Compare built release metadata with the exact source commit
@@ -229,7 +239,9 @@ jobs:
229239
printf 'COMPOSE_FILE=docker-compose.test.yml:docker-compose.native-cancellation.yml\n' >> "$GITHUB_ENV"
230240
printf 'DURABLE_WORKFLOW_NATIVE_SOURCE_QUALIFICATION=1\n' >> "$GITHUB_ENV"
231241
- name: Bootstrap patched pip trust
232-
uses: durable-workflow/.github/.github/actions/bootstrap-patched-pip@ff93e15dd3d3aa0b5ba8991fe5101a9e1be49c10 # patched-pip
242+
uses: durable-workflow/.github/.github/actions/bootstrap-patched-pip@75587fc33ff40c34f32ef777293dad56bb6f48c7 # clean-trust
243+
with:
244+
clients: pip,python
233245
- run: pip install -e '.[dev]'
234246
working-directory: sdk-python
235247
- name: Configure isolated Docker project

‎.github/workflows/docs-pr.yml‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,17 @@ jobs:
3333
with:
3434
python-version: "3.12"
3535
- name: Bootstrap patched pip trust
36-
uses: durable-workflow/.github/.github/actions/bootstrap-patched-pip@ff93e15dd3d3aa0b5ba8991fe5101a9e1be49c10 # patched-pip
36+
uses: durable-workflow/.github/.github/actions/bootstrap-patched-pip@75587fc33ff40c34f32ef777293dad56bb6f48c7 # clean-trust
37+
with:
38+
clients: pip,python
3739
- name: Install package and documentation dependencies
3840
run: pip install -e '.[docs]'
3941
- name: Install Chromium
42+
env:
43+
NODE_OPTIONS: --use-openssl-ca
44+
NODE_EXTRA_CA_CERTS: ''
45+
NODE_USE_SYSTEM_CA: '0'
46+
NODE_TLS_REJECT_UNAUTHORIZED: '1'
4047
run: python -m playwright install --with-deps chromium
4148
- name: Build and check the portal
4249
run: |

‎.github/workflows/docs.yml‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,17 @@ jobs:
6969
fi
7070
echo "version=$version" >> "$GITHUB_OUTPUT"
7171
- name: Bootstrap patched pip trust
72-
uses: durable-workflow/.github/.github/actions/bootstrap-patched-pip@ff93e15dd3d3aa0b5ba8991fe5101a9e1be49c10 # patched-pip
72+
uses: durable-workflow/.github/.github/actions/bootstrap-patched-pip@75587fc33ff40c34f32ef777293dad56bb6f48c7 # clean-trust
73+
with:
74+
clients: pip,python
7375
- name: Install package and documentation dependencies
7476
run: pip install -e '.[docs]'
7577
- name: Install Chromium
78+
env:
79+
NODE_OPTIONS: --use-openssl-ca
80+
NODE_EXTRA_CA_CERTS: ''
81+
NODE_USE_SYSTEM_CA: '0'
82+
NODE_TLS_REJECT_UNAUTHORIZED: '1'
7683
run: python -m playwright install --with-deps chromium
7784
- name: Build and check the portal
7885
env:

‎.github/workflows/publish.yml‎

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

110110
- name: Bootstrap patched pip trust
111-
uses: durable-workflow/.github/.github/actions/bootstrap-patched-pip@ff93e15dd3d3aa0b5ba8991fe5101a9e1be49c10 # patched-pip
111+
uses: durable-workflow/.github/.github/actions/bootstrap-patched-pip@75587fc33ff40c34f32ef777293dad56bb6f48c7 # clean-trust
112+
with:
113+
clients: pip,python
112114

113115
- name: Install build tools
114116
run: pip install build twine

0 commit comments

Comments
 (0)