angular-cn/aio/aio-builds-setup/docs/vm-setup--set-up-secrets.md

965 B

VM Setup - Set up secrets

Overview

Necessary secrets:

  1. GITHUB_TOKEN

    • Used for:
      • Retrieving open PRs without rate-limiting.
      • Retrieving PR author.
      • Retrieving members of the trusted GitHub teams.
      • Posting comments with preview links on PRs.
  2. CIRCLE_CI_TOKEN

    • Used for:
      • Retrieving build information.
      • Downloading build artifacts.

Create secrets

  1. GITHUB_TOKEN

  2. CIRCLE_CI_TOKEN

Save secrets on the VM

  • sudo mkdir /aio-secrets
  • sudo touch /aio-secrets/GITHUB_TOKEN
  • Insert <github-token> into /aio-secrets/GITHUB_TOKEN.
  • sudo touch /aio-secrets/CIRCLE_CI_TOKEN
  • Insert <access-token> into /aio-secrets/CIRCLE_CI_TOKEN.
  • sudo chmod 400 /aio-secrets/*