fix(release): use trusted verifier during recovery

This commit is contained in:
chichuan
2026-08-13 16:05:31 +08:00
parent f78f1b83e7
commit 19e8aab4fd
2 changed files with 18 additions and 1 deletions
+9
View File
@@ -1583,6 +1583,15 @@ func TestReleaseWorkflowRecoveryReusesGuardedJobs(t *testing.T) {
t.Errorf("%s must not fork into a recovery-specific publisher", name)
}
}
releaseSection := sections["release"]
for _, required := range []string{
`tmp/trusted-release-tooling/scripts/release/verify-package-managers.sh`,
`DWS_PACKAGE_DIST_DIR: ${{ github.workspace }}/dist`,
} {
if !strings.Contains(releaseSection, required) {
t.Errorf("release must verify sealed artifacts with trusted recovery tooling %q", required)
}
}
if strings.Count(workflow, "name: Build signed release artifacts") != 1 ||
strings.Count(workflow, "name: Verify Apple Developer ID signatures") != 1 ||
strings.Count(workflow, "name: Publish immutable GitHub Release") != 1 ||