chore: drop permissions blocks Forgejo ignores #3
Loading…
Reference in a new issue
No description provided.
Delete branch "chore/drop-permissions"
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 17 ignores
permissions:and shows the warning "Job…or its workflow has apermissionsfield, which is not supported in Forgejo and will be ignored. Use Authorized Integrations…" (source:services/actions/notifier.gocalculateWarnings; token scopemodels/perm/access/repo_permission.goGetActionRepoPermission: 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 theHasPermissionscheck (john/releasetools/forgejo-parse, PR #10). What actually limits jobs is documented in john/release README.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.