Skip to content

pkgbuild: provenance#390

Merged
KSXGitHub merged 7 commits intomasterfrom
claude/add-provenance-verification-jXugk
Apr 8, 2026
Merged

pkgbuild: provenance#390
KSXGitHub merged 7 commits intomasterfrom
claude/add-provenance-verification-jXugk

Conversation

@KSXGitHub
Copy link
Copy Markdown
Owner

Adds provenance verification steps to the parallel-disk-usage-bin AUR package.

https://claude.ai/code/session_01Yc9Cmehp4Hc7fBezohZNwt

claude added 5 commits April 8, 2026 07:00
Add a prepare() function that verifies the build provenance
attestations for the binary, completion files, and man page using
`gh attestation verify`. The step is gracefully skipped (with a
warning) when the GitHub CLI is missing or not authenticated, since
`gh attestation verify` currently requires an authenticated session
even for public repositories (cli/cli#12030).
The binary and shell completions are the high-risk artifacts (the
binary runs as root during install, the completions are sourced by
every interactive shell). The man page is rendered by groff in safer
mode, so verifying it adds little value compared to keeping the
prepare() function short.
makepkg has no `hint` helper, so the warnings about missing `gh` /
missing authentication read as if the script intends to perform the
action itself. Prefix them with `hint:` to make their advisory nature
explicit.
Stacking `WARNING:` and `hint:` on the same line reads as a
contradictory severity tag. Switch the second line of each branch to
makepkg's `plain` helper, which renders as an indented continuation
without re-asserting the warning prefix.
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds a provenance verification step to the parallel-disk-usage-bin AUR PKGBUILD template, leveraging GitHub CLI attestations to validate release artifacts when gh is available and authenticated.

Changes:

  • Add a prepare() hook that attempts to verify artifact attestations via gh attestation verify.
  • Skip provenance verification with warnings when gh is missing or not authenticated.

@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 8, 2026

Performance Regression Reports

commit: 883725e

There are no regressions.

Wrap the verify loop so that a failure (including transient network or
rate-limit errors) points users at PDU_SKIP_PROVENANCE_VERIFY as an
escape hatch, and honor the variable up front to let users skip the
check entirely in offline builds.

Addresses Copilot review feedback on #390.
"For offline builds" was too narrow and framed the opt-out as a
convenience knob. Rephrase to make the rule explicit: use
PDU_SKIP_PROVENANCE_VERIFY only when a failure is unrelated to
artifact trust, so users don't treat it as a way to silence real
tampering signals.
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 3 comments.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

@KSXGitHub KSXGitHub marked this pull request as ready for review April 8, 2026 08:16
@KSXGitHub KSXGitHub merged commit 297693d into master Apr 8, 2026
17 checks passed
@KSXGitHub KSXGitHub deleted the claude/add-provenance-verification-jXugk branch April 8, 2026 08:17
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.

3 participants