Forgejo

Restrict how your agents can use Forgejo.

Require agents to confirm every push, or set up custom rules for automation.

ForgejoRelease bot · Acme forgekc_…9a04
PermissionAccessRepositoriesOnly when
Contents · Read
contents.read
Allowedacme/apiAny request
Contents · Push
contents.push
Allowedacme/api
git.ref starts with refs/heads/agent/
git.force = false
Pull requests · Create
pulls.create
Allowedacme/apiAny request
Pull requests · Merge
pulls.merge
Ask meWaits up to 24 hoursacme/apiAny request
Commit statuses · Read
statuses.read
Allowedacme/*Any request
Allowed goes straight throughAsk me waits for your confirmation
What you can control

Permissions

Each row of a key's Forgejo access is one of these, set to Allowed or Ask me.

PermissionName in the API
Contents · Readcontents.read
Contents · Pushcontents.push
Issues · Readissues.read
Issues · Createissues.create
Comments · Readcomments.read
Comments · Createcomments.create
Labels · Readlabels.read
Labels · Applylabels.apply
Labels · Managelabels.manage
Pull requests · Readpulls.read
Pull requests · Createpulls.create
Pull requests · Editpulls.edit
Pull requests · Mergepulls.merge
Commit statuses · Readstatuses.read
Actions · Readactions.read
Actions · Runactions.run
Actions logs · Readaction_logs.read
Repository settings · Readsettings.read
Repository settings · Changesettings.change
Repository settings · Change default branchsettings.change_default_branch
Repository settings · Change visibilitysettings.change_visibility
Repository settings · Archivesettings.archive
Repository settings · Renamesettings.rename
Branches · Readbranches.read
Branches · Createbranches.create
Branches · Renamebranches.rename
Branches · Deletebranches.delete
Tags · Readtags.read
Tags · Createtags.create
Tags · Deletetags.delete
Branch protection · Readbranch_protection.read
Branch protection · Changebranch_protection.change
Branch protection · Deletebranch_protection.delete
Webhooks · Readhooks.read
Webhooks · Createhooks.create
Webhooks · Changehooks.change
Webhooks · Deletehooks.delete
Webhooks · Testhooks.test
Deploy keys · Readdeploy_keys.read
Deploy keys · Adddeploy_keys.add
Deploy keys · Deletedeploy_keys.delete
Collaborators · Readcollaborators.read
Collaborators · Add or changecollaborators.add
Collaborators · Removecollaborators.remove
Teams · Readteams.read
Teams · Addteams.add
Teams · Removeteams.remove
Repository · Deleterepo.delete
Repository · Transferrepo.transfer
Repositories · Listrepositories.list
Repositories · Createrepositories.create
Repositories · Create in an organizationrepositories.create_in_org
Organizations · Readorgs.read
Custom rule: a method or git action (git fetch or git push) and a path that you choose.

Give your agents Forgejo keys that fit.