Skip to content

Harden release artifact validation - #2

Merged
1337lean merged 1 commit into
mainfrom
agent/harden-release-validation
Aug 7, 2026
Merged

Harden release artifact validation#2
1337lean merged 1 commit into
mainfrom
agent/harden-release-validation

Conversation

@1337lean

@1337lean 1337lean commented Aug 7, 2026

Copy link
Copy Markdown
Owner

What changed

  • validate ELF, Mach-O, and PE executable type and architecture for all six release targets
  • fully read required archive entries so ZIP CRC failures cannot pass validation
  • reject empty required packaged assets
  • add regression coverage for wrong-target binaries, empty assets, and corrupt ZIP contents
  • add a least-privilege, SHA-pinned CodeQL workflow
  • document the stronger release guarantees

Why

The prior release gate executed only the host-native archive. A malformed non-host executable or a corrupt required ZIP entry could therefore pass the pre-publication validator after its outer checksum was recomputed. The repository also had no GitHub code-scanning analysis.

Validation

  • go test ./...
  • go test -race ./...
  • go vet ./...
  • Go 1.25 test/build compatibility
  • Staticcheck v0.7.0
  • govulncheck v1.1.4
  • Actionlint v1.7.12
  • GoReleaser v2.17.1 configuration check
  • six-target snapshot build plus releasecheck

@github-advanced-security

Copy link
Copy Markdown

You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool.

What Enabling Code Scanning Means:

  • The 'Security' tab will display more code scanning analysis results (e.g., for the default branch).
  • Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results.
  • You will be able to see the analysis results for the pull request's branch on this overview once the scans have completed and the checks have passed.

For more information about GitHub Code Scanning, check out the documentation.

@1337lean
1337lean marked this pull request as ready for review August 7, 2026 03:04
@1337lean
1337lean merged commit 1f0cc97 into main Aug 7, 2026
15 checks passed
@1337lean
1337lean deleted the agent/harden-release-validation branch August 7, 2026 03:04
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.

2 participants