Repository navigation
ci: check the attestation of FrankenPHP before the binary first runs - #5
Merged
Merged
Conversation
The Docker images have no gh, so the binary of the Debian and Alpine jobs ran unchecked, and linux-arm64 never got a check. These jobs now install it on the runner. The installer checks the attestation before it runs the binary for its versions.
sorge-it
force-pushed
the
ci/attest-on-host
branch
from
November 21, 2026 16:30
d18c8e1 to
85c3d0f
Compare
sorge-it
marked this pull request as ready for review
November 21, 2026 16:38
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
composer frankenphp:installchecks the attestation of a downloaded binary before it runs thebinary for its versions.
gh, instead of in thecontainer, which has none. The step fails unless
.frankenphp/ATTESTEDexists. The containerfinds
VERSIONandATTESTEDand runs no install of its own.Why
The second neutral rating of 1.0.0 named it: in the Docker jobs the binary ran unchecked, and
linux-arm64, which runs only in Docker, never got a check. A first version of this PR checked the
binary on the runner after the install in the container; its review found that the install had
already run the binary once, for its versions.
Tests
Run locally, as the steps of the jobs run:
ghghgh attestation verifyof the linux-arm64 and linux-amd64 binarieszizmor and actionlint: no findings.
composer testin Docker on Debian (PHP 8.4) and Alpine (PHP8.5, locked and newest), on arm64 and amd64: 6 of 6 green.
The CI run of this PR shows the first install on
ubuntu-24.04-arm: its log must read "gh verifiedthe attestation of frankenphp-linux-aarch64".