965 B
965 B
VM Setup - Set up secrets
Overview
Necessary secrets:
-
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.
- Used for:
-
CIRCLE_CI_TOKEN- Used for:
- Retrieving build information.
- Downloading build artifacts.
- Used for:
Create secrets
-
GITHUB_TOKEN- Visit https://github.com/settings/tokens.
- Generate new token with the
public_reposcope.
-
CIRCLE_CI_TOKEN- Visit https://circleci.com/gh/angular/angular/edit#api
- Create an API token with
Build Artifactsscope
Save secrets on the VM
sudo mkdir /aio-secretssudo 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/*