Skip to content

release: hand off draft archive to Windows job - #2856

Merged
alixander merged 1 commit into
masterfrom
agent/windows-draft-archive
Aug 24, 2026
Merged

alixander merged 1 commit into
masterfrom
agent/windows-draft-archive

Conversation

@alixander

Copy link
Copy Markdown
Collaborator

Summary

  • download the pinned Windows release archive in the trusted validation job that can access draft releases
  • verify its GitHub SHA-256 digest before uploading it as a run-scoped Actions artifact
  • keep the code-executing Windows build job read-only and have it independently verify the same digest before building the MSI

Regression and recovery

The protected-master v0.8.2 recovery run successfully found and pinned the draft release, asset ID, digest, and signed tag. Its Windows job then received a 403 when its intentionally read-only token tried to download the draft asset.

This preserves the least-privilege boundary instead of granting write access to the Windows job. After merge, a new protected-master dispatch can reuse the existing immutable release archive without moving the v0.8.2 tag or replacing any release assets.

Failed recovery run: https://github.com/d2lang/d2/actions/runs/32760646794

Validation

  • live download of draft asset 527960109 matched SHA-256 2c223b56ce5f5984c235b88b1e0e996126ba7c8a37476ad9b47d7d6db9475f18
  • full ./make.sh: formatting, generation, vet, build, Go tests, E2E tests, D2.js build, 39 unit tests, and 2 integration tests
  • workflow YAML parse
  • git diff --check

@alixander
alixander merged commit 0c0d487 into master Aug 24, 2026
9 checks passed
@alixander
alixander deleted the agent/windows-draft-archive branch August 24, 2026 18:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant