forked from RoushTech/docker
ci: drop permissions blocks Forgejo does not support #18
Loading…
Reference in a new issue
No description provided.
Delete branch "ci/drop-unsupported-permissions-blocks"
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?
Forgejo has no support for the
permissionsfield: it warns about it on every run and then ignores it, so the declared scopes were never actually in effect. Every run was emitting:(and the same for
build).Changes
testandbuild, the two jobs named in the warnings.permissionsas a field YAML anchors do expand on. That example no longer exists.Each removal site keeps a short comment pointing at Authorized Integrations as the real mechanism.
Notes
No behaviour change on Forgejo — the blocks were already inert, so this is warning cleanup plus removing a permission model the files implied but never applied.
Worth knowing: if these workflows ever run on real GitHub Actions, the removal would matter.
GITHUB_TOKENwould fall back to the repo default rather than the declared scopes, andbuildwantedpackages: write. Given the Forgejo-specific pinning throughout, that isn't a target today.Verification
Both files parse as YAML.
act -ndry-runs clean:build.ymlonpush,mirror-baseimages.ymlonscheduleacross all 9 matrix legs.🤖 Generated with Claude Code
CI on
e953cc0failed, but the failure is unrelated to this change — the runner ran out of disk.What happened: run 254 died with 25
no space left on deviceerrors from buildkit, e.g.The cascade of
failed to copy to tar: io: read/write on closed pipeerrors is downstream of the same exhaustion, and the builder then couldn't even be torn down (context deadline exceededremoving the buildx volume).Why it isn't this PR: the only functional change here is removing
permissionsblocks that Forgejo already ignores, so it cannot influence what gets built or how much disk it takes. Corroborating: task 35615 on unrelated branchclaude/brave-ritchie-86fd3dfailed at the same moment, and task 35612 was building concurrently. Three full-matrix builds sharing one runner's btrfs backing store exhausted it.Not re-run yet: this Forgejo version has no rerun API (
POST /actions/runs/254/rerun→ 404), and the competing build was still running, so an immediate retry would likely hit the same wall. Needs either a re-run from the web UI once the runner is quiet, or a push to this branch to retrigger.6143c6ce2067be71e6c1