bot user doku

Signed-off-by: Basil Bruhn <basil.bruhn@psi.ch>
This commit is contained in:
bruhn_b committed 2025-07-15 13:34:39 +02:00
1 parent f1219e9e04
commit 8fa6d3ed6c
1 file changed
+3 -6
+3 -6
View File
@@ -123,13 +123,10 @@ Since local login is disabled, service users need to be created inside the gitea
# connect to the container as user git
docker exec -it --user git gitea bash
# create service user with given password
gitea admin user create --username {org-gitea} --password {provided password} --email {username@psi.ch} --must-change-password=false --restricted
# create service user
gitea admin user create --username {org-gitea} --email {username@psi.ch} --restricted --user-type bot
# create service user with a random generated password
gitea admin user create --username {org-gitea} --random-password --random-password-length {value default:12} --email {username@psi.ch} --must-change-password=false --restricted
# create a token with a give scope (scopes can be found here: https://gitea.psi.ch/user/settings/applications) and can be comma seperated
# create a token with a give scope (scopes can be found here: https://gitea.psi.ch/user/settings/applications) that can be comma seperated but without spaces!
gitea admin user generate-access-token --username {org-gitea} --token-name {username-scope} --scopes {read|write:scope}
```