From 8ed808777b1d9831a05599aa866e4b78fdbb3552 Mon Sep 17 00:00:00 2001 From: Gleb Bahmutov Date: Wed, 25 Mar 2020 17:05:49 -0400 Subject: [PATCH] add comments about circle token --- cy_scripts/scrape.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/cy_scripts/scrape.js b/cy_scripts/scrape.js index b7a091c1db..c5186021b4 100644 --- a/cy_scripts/scrape.js +++ b/cy_scripts/scrape.js @@ -33,6 +33,14 @@ function checkToken (token) { } function getCircleCredentials () { + // the JSON file should have an object like + // { "token": "abc123..." } + // where the token is your personal API token from CircleCI + // alternatively, put the JSON object into environment variable + // with file shown by filenameToShellVariable(jsonFile) call + // which is something like _circle_credentials_json + // you can load such environment variable quickly from local terminal with + // https://github.com/bahmutov/as-a const jsonFile = path.join('support', '.circle-credentials.json') const config = configFromEnvOrJsonFile(jsonFile)