Skip to content

Commit

Permalink
Clarify access level needed for secrets in web interface
Browse files Browse the repository at this point in the history
Closes github#1087

I considered changing the `permissions-statement-secrets-repository`
reusable to include a reference to the API, but then I noticed that the
other place using it (["Enabling debug logging"][1]) already mentioned
the API, so instead I added a note. Including a mention of "web
interface" lead to (IMO) too much duplication in text, so I rephrased it
to be more like the `permissions-statement-secrets-api` reusable.

[1]: https://docs.github.com/en/free-pro-team@latest/actions/managing-workflow-runs/enabling-debug-logging
  • Loading branch information
muru committed Dec 25, 2020
1 parent bb3297c commit 980ebc9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions content/actions/reference/encrypted-secrets.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,12 @@ When generating credentials, we recommend that you grant the minimum permissions

If your repository {% if currentVersion == "free-pro-team@latest" or currentVersion ver_gt "enterprise-server@3.0" %}has environment secrets or {% endif %}can access secrets from the parent organization, then those secrets are also listed on this page.

{% note %}

**Note:** Users with collaborator access can use the REST API to manage secrets for a repository. For more information, see "[{% data variables.product.prodname_actions %} secrets API](/rest/reference/actions#secrets)."

{% endnote %}

{% if currentVersion == "free-pro-team@latest" or currentVersion ver_gt "enterprise-server@3.0" %}
### Creating encrypted secrets for an environment

Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
To create secrets for a user account repository, you must be the repository owner. To create secrets for an organization repository, you must have `admin` access.
To manage secrets using the web interface, you must be the repository owner for a user account repository, or have `admin` access for an organization repository.

0 comments on commit 980ebc9

Please sign in to comment.