mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[PR #6130] [MERGED] ci: attach provenance and SBOM attestations to the published images #6091
Labels
No labels
backlog
bug
clarification needed
documentation
duplicate
enhancement
github_actions
good first issue
invalid
javascript
New Feature
PR welcomed
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
MHSanaei/3x-ui#6091
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/MHSanaei/3x-ui/pull/6130
Author: @kobihikri
Created: 7/28/2026
Status: ✅ Merged
Merged: 8/15/2026
Merged by: @MHSanaei
Base:
main← Head:ci/image-provenance-sbom📝 Commits (1)
2924654ci: attach provenance and SBOM attestations to the published images📊 Changes
1 file changed (+2 additions, -0 deletions)
View changed files
📝
.github/workflows/docker.yml(+2 -0)📄 Description
Hi, and thanks for 3x-ui.
.github/workflows/docker.ymlpublishes to bothhsanaeii/3x-uion Docker Hub andghcr.io/mhsanaei/3x-uion every tag, but the pushed manifests carry no provenance or SBOM attestation. Someone pulling the image cannot check that it was built by this workflow, from this repository, at that tag.That felt worth raising for 3x-ui in particular. It is a panel people deploy on a VPS, usually straight from the image with a one-line install, and it holds the credentials for everything it fronts. Where the image came from is exactly the thing a deployer would want to be able to confirm.
The change is two lines on the single build step:
I used BuildKit's own attestation support rather than a separate signing action for a specific reason: your step pushes one build to two registries at once, and BuildKit attaches the attestation to the image manifest itself, so Docker Hub and GHCR both get it with no extra plumbing and no second credential. It also means no permissions change —
contents: readandpackages: writestay exactly as they are, and nothing needsid-token.After a release, anyone can check with:
Two things worth knowing before merging:
mode=maxrecords the full build including build arguments. That is normally right for a public image;provenance: trueproduces a smaller record if you would rather.I have not claimed any SLSA level — the attestation is what BuildKit produces, and how the whole build should be characterised is your call.
Disclosure: I used AI assistance to help spot this and prepare the change, and I read the workflow and both push targets myself.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.