mirror of
https://github.com/Zagitta/gpu-unlock.git
synced 2026-12-03 19:44:49 +07:00
[PR #318] ci(unraid): least-privilege token, no persisted credentials, matrix via env #290
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Zagitta/gpu-unlock#290
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/Zagitta/gpu-unlock/pull/318
Author: @ItsRenjiii
Created: 11/7/2026
Status: 🔄 Open
Base:
main← Head:ci/unraid-least-privilege📝 Commits (1)
ed2fe6bci(unraid): least-privilege token, no persisted credentials, matrix via env📊 Changes
1 file changed (+21 additions, -4 deletions)
View changed files
📝
.github/workflows/unraid.yml(+21 -4)📄 Description
Hardens
.github/workflows/unraid.yml, from the CI items in #306. One file; the jobs do the same work as before.Changes
contents: read, and onlypublishgetscontents: write.discoveronly reads theunraidrelease (gh release download) andbuildwrites nothing to the repository.env:.matrix.unraid.version,urlandsha256come fromreleases.unraid.net. They now reach the shell asUNRAID_VERSION,UNRAID_URLandUNRAID_SHA256instead of being expanded into therun:scripts.persist-credentials: falseon all three checkouts. Thebuildjob mounts the checkout into thegcccontainer that compiles downloaded kernel source, and no job pushes with git.publishusesghwithGH_TOKEN, as before.Checks
actionlint(with shellcheck) passes on the changed workflow.zizmor --persona=pedanticgives 16 findings before and 8 after. These are gone:excessive-permissions(1)artipacked(3)template-injection(4)The 8 that remain are
unpinned-uses(5),anonymous-definition(2) andundocumented-permissions(1, for the workflow-level block). The first two are untouched here.With read-only access,
packaging/unraid/discover.shstill reads theunraidrelease and returns the matrix (5 Unraid releases today).With the first entry (7.3.4) as env, the build step's commands expand to the same download URL (HTTP 206), checksum line and
dist/7.3.4.builtas before.I haven't run the whole workflow, because on a fork it would build and publish a full
unraidrelease.Not included: pinning actions by SHA, pinning images by digest, and the Unraid default
TARGETS="all"from #306. Those change how the project pins dependencies or how the plugin behaves, so they're your call.🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.