Skip to content

Commit 682a049

Browse files
[FIX] Minor fix for build verification (- WIP PR #448 -)
Changes in file .github/actions/checkout-and-rebuild/action.yml: * use input token for verifing attestation too Changes in file tests/test_hear_cleanup.py: * skip early if send fails in flaky test
1 parent fa9028a commit 682a049

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

.github/actions/checkout-and-rebuild/action.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,8 @@ runs:
129129
- id: verify_artifact_source
130130
name: "Verify Build Files"
131131
shell: bash
132+
env:
133+
GH_TOKEN: ${{ inputs.token }}
132134
run: |
133135
gh attestation verify --owner reactive-firewall-org "${{ steps.fetch_artifact_files.outputs.download-path }}"
134136
- name: "Enumerate Fetched Files"

tests/test_hear_cleanup.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,8 @@ def test_cleanup_on_exit(self) -> None:
147147
group=self.TEST_MULTICAST_GROUP, port=_fixture_port_num,
148148
ttl=1, data="STOP Test",
149149
)
150+
if not didSend: # pragma: no branch
151+
raise unittest.SkipTest("Can't test without transmitting") from None
150152
p.join(self.STOP_DELAY_SECONDS)
151153
p_tick += 1
152154
self.assertFalse(p.is_alive())

0 commit comments

Comments
 (0)