Forgejo 17 warns on every PR that rt's workflows carry permissions: blocks it ignores; remove them from both twins in one PR #1598
Labels
No labels
bump
major
bump
minor
bump
patch
kind
bug
kind
chore
kind
docs
kind
epic
kind
feature
loop/paused
mirror-drift
priority
critical
priority
high
priority
low
priority
medium
size
L
size
M
size
S
size
XL
status
blocked
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
frankenbit/release-toolkit#1598
Loading…
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?
Since the forge was upgraded to 17.0.0, every PR in a repo that uses rt's reusable gates shows eight warnings: "Job or its workflow has a permissions field, which is not supported in Forgejo and will be ignored." The operator raised this. rt itself did not change:
reusable-pr-gates.ymlhas the same 8 blocks at v0.66.0, v0.67.0, v0.68.0 and v0.68.1. What is new is that the forge reports them.Scope
Measured by @bosun at
origin/main8c0a7961; it matches @quartermaster's count..forgejo/workflows: 20 blocks in 12 of the 27 files.reusable-pr-gates.ymlhas 8 andgo-ci.ymlhas 2..gitea/workflows: 11 blocks in 4 of the 6 twin files. They must change in the same commit, orrt gitea-twin --checkfails..github/workflows.Why removal is safe
This is @quartermaster's argument. The forge already ignores these blocks, so every job already runs as if it had none; deleting them cannot change what any job can do. The
.giteatwins sync to gitea.com, where Actions has never run: 0 runs. To show that zero is real, the same anonymous query against gitea/tea returned 5.Acceptance
rt gitea-twin --checkpasses.goreleaser.ymlcreates the release and pushes the image;reusable-release.ymland its twin create the release. Today those blocks are the only record. "Authorized Integrations", which the warning points to, would need it if the forge ever narrows the default token.The change reaches other repos only after an rt release and a re-pin; Storey pins
v0.68.1. If an Actions runner is ever attached on gitea.com, first check how Gitea handlespermissions:.