Skip to content

Commit 112cba2

Browse files
authored
fix(ci): flatten policy approval download (#325)
1 parent 66fa4b7 commit 112cba2

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

.github/workflows/quality-ratchet.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,7 @@ jobs:
170170
uses: actions/download-artifact@v4
171171
with:
172172
artifact-ids: ${{ steps.authorization.outputs.artifact_id }}
173+
merge-multiple: true
173174
path: ${{ runner.temp }}/approval-evidence
174175
github-token: ${{ github.token }}
175176
repository: ${{ github.repository }}

tests/test_ci_quality_ratchet.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,10 @@ def test_workflows_separate_ordinary_and_protected_policy_changes() -> None:
153153
assert '--expected-candidate-sha "$HEAD_SHA"' in ordinary
154154
assert '--expected-base-sha "$BASE_SHA"' in ordinary
155155
assert "artifact-ids: ${{ steps.authorization.outputs.artifact_id }}" in ordinary
156+
approval_download = ordinary.split("- name: Download exact approval evidence", 1)[1].split(
157+
"- name: Verify immutable approval evidence binding", 1
158+
)[0]
159+
assert "merge-multiple: true" in approval_download
156160
assert "Bind the event to the current protected-main tip" in ordinary
157161
assert "--verify-main-ref-response" in ordinary
158162
assert "--expected-current-main-sha" in ordinary

0 commit comments

Comments
 (0)