Skip to content

Commit

Permalink
docs(core): links to set CI vars instructions (#27978)
Browse files Browse the repository at this point in the history
Adds links to GitHub Actions and GitLab instructions for defining secret
environment variables in the UI.
  • Loading branch information
isaacplmann committed Sep 18, 2024
1 parent ee30d6f commit fb91ed5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/nx-cloud/recipes/access-tokens.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ The `read-write` access tokens allows task results to be stored in the remote ca

You can configure an access token in CI by setting the `NX_CLOUD_ACCESS_TOKEN` environment variable. `NX_CLOUD_ACCESS_TOKEN` takes precedence over any authentication method in your `nx.json`.

The following example shows how to set the `NX_CLOUD_ACCESS_TOKEN` environment variable in a GitHub Actions workflow. You will need to add the `secrets.NX_CLOUD_ACCESS_TOKEN` secret to your repository based on instructions provided by your CI provider.
The following example shows how to set the `NX_CLOUD_ACCESS_TOKEN` environment variable in a GitHub Actions workflow. You will need to add the `secrets.NX_CLOUD_ACCESS_TOKEN` secret to your repository based on instructions provided by your CI provider (see [GitHub Actions](https://docs.github.com/en/actions/security-for-github-actions/security-guides/using-secrets-in-github-actions) or [GitLab](https://docs.gitlab.com/ee/ci/variables/#define-a-cicd-variable-in-the-ui) instructions).

```yml {% fileName=".github/workflows/ci.yml" highlightLines=["29-32"] %}
name: CI
Expand Down

0 comments on commit fb91ed5

Please sign in to comment.