0
0
Fork 0
mirror of https://codeberg.org/forgejo/docs.git synced 2024-11-24 18:09:26 -05:00

docs: {user,admin}: runners and secrets are available for users

This commit is contained in:
Earl Warren 2023-05-31 07:57:04 +02:00 committed by Caesar Schinas
parent 96d4d8aeed
commit d7274c3351
No known key found for this signature in database
GPG key ID: AE9108461BEA5ACF
2 changed files with 4 additions and 2 deletions

View file

@ -76,7 +76,8 @@ $ ./lxc-helpers/lxc-helpers.sh lxc_container_run bash
The `Forgejo runner` needs to connect to a `Forgejo` instance and must register itself before doing so. It will be given permission to read the repositories and send back information to `Forgejo` such as the logs or its status. A special kind of token is needed and can be obtained from the `Create new runner` button: The `Forgejo runner` needs to connect to a `Forgejo` instance and must register itself before doing so. It will be given permission to read the repositories and send back information to `Forgejo` such as the logs or its status. A special kind of token is needed and can be obtained from the `Create new runner` button:
- in `/admin/runners` to gain access to all repositories. - in `/admin/runners` to gain access to all repositories.
- in `/org/{organization}/settings/actions/runners` to gain access to all repositories within the organization. - in `/org/{org}/settings/actions/runners` to gain access to all repositories within the organization.
- in `/user/settings/actions/runners` to gain access to all repositories of the logged in user
- in `/{owner}/{repository}/settings/actions/runners` to gain access to a single repository. - in `/{owner}/{repository}/settings/actions/runners` to gain access to a single repository.
For instance, using a token obtained for a test repository from `next.forgejo.org`: For instance, using a token obtained for a test repository from `next.forgejo.org`:

View file

@ -29,9 +29,10 @@ The following guide explains key **concepts** to help understand how `workflows`
# Secrets # Secrets
A repository or an organization can hold secrets, a set of key/value pairs that are stored encrypted in the `Forgejo` database and revealed to the `workflows` as `${{ secrets.KEY }}`. They can be defined from the web interface: A repository, a user or an organization can hold secrets, a set of key/value pairs that are stored encrypted in the `Forgejo` database and revealed to the `workflows` as `${{ secrets.KEY }}`. They can be defined from the web interface:
- in `/org/{org}/settings/actions/secrets` to be available in all the repositories that belong to the organization - in `/org/{org}/settings/actions/secrets` to be available in all the repositories that belong to the organization
- in `/user/settings/actions/secrets` to be available in all the repositories that belong to the logged in user
- in `/{owner}/{repo}/settings/actions/secrets` to be available to the `workflows` of a single repository - in `/{owner}/{repo}/settings/actions/secrets` to be available to the `workflows` of a single repository
![add a secret](../../../../images/v1.20/user/actions/secret-add.png) ![add a secret](../../../../images/v1.20/user/actions/secret-add.png)