chore: drop permissions blocks Forgejo ignores #3

Merged
john merged 1 commit from chore/drop-permissions into main 2026-11-17 13:26:35 +00:00
Owner

Forgejo 17 ignores permissions: and shows the warning "Job … or its workflow has a permissions field, which is not supported in Forgejo and will be ignored. Use Authorized Integrations…" (source: services/actions/notifier.go calculateWarnings; token scope models/perm/access/repo_permission.go GetActionRepoPermission: write on own repo, read for fork PRs).

Removes every permissions: block (YAML structure otherwise identical, verified by parsing before/after) and turns tests that asserted them into absence checks. All workflows pass Forgejo's own parser and the HasPermissions check (john/release tools/forgejo-parse, PR #10). What actually limits jobs is documented in john/release README.

Forgejo 17 ignores `permissions:` and shows the warning *"Job `…` or its workflow has a `permissions` field, which is not supported in Forgejo and will be ignored. Use Authorized Integrations…"* (source: `services/actions/notifier.go` `calculateWarnings`; token scope `models/perm/access/repo_permission.go` `GetActionRepoPermission`: write on own repo, read for fork PRs). Removes every `permissions:` block (YAML structure otherwise identical, verified by parsing before/after) and turns tests that asserted them into absence checks. All workflows pass Forgejo's own parser and the `HasPermissions` check (john/release `tools/forgejo-parse`, PR #10). What actually limits jobs is documented in john/release README.
chore: drop permissions blocks Forgejo ignores
All checks were successful
Dotfiles CI / test (pull_request) Successful in 13s
Security / scan (pull_request) Successful in 27s
Security / security (pull_request) Successful in 0s
1294b75ae8
Forgejo 17 ignores `permissions:` in workflows and shows a pre-execution
warning ("not supported in Forgejo and will be ignored"). The job token
always has write access to its own repository (read-only for fork PRs), so
the blocks only misled readers about what a job can do. Tests that asserted
the blocks now assert their absence. See the john/release README for what
actually limits a job.
john merged commit 87a07ade31 into main 2026-11-17 13:26:35 +00:00
john deleted branch chore/drop-permissions 2026-11-17 13:26:35 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
john/dotfiles!3
No description provided.