Certain one-time setups need to be done for this repo to function as expected. At the time of writing, this has already been done. However, instructions are provided here for transparency and reproducibility in the event that any part of the setup needs to be repeated later.
- Generate a fine-grained personal access token with the name
cdfe-icc-eval-core
and read-only access to public repos only. - (For running the pipeline locally) In
/data/.env.local
, add aAUTH_GITHUB
key with the value of the generated token, e.g.AUTH_GITHUB=github_pat_12345
- (For running the pipeline on GitHub Actions) Create an actions repository secret in this repo with the name
AUTH_GITHUB
and value of the generated token.
- Go to the Google Console welcome page (console.cloud.google.com).
- Create a new project titled "cfde-icc-eval-core".
- Go to "IAM & Admin".
- Create a service account with name "API Access" and id "api-access".
- Create a JSON key for the service account.
- (For running the pipeline locally) Download the JSON key, move it to the root of this repo, rename it to "ga-credentials.json", and ensure it is being picked up by .gitignore.
- Go back to the Google Console welcome page, then to "API & Services".
- Disable any apis (one-by-one) that were enabled by default.
- Enable "Google Analytics Data API" and "Google Analytics Admin API".
- Find the service account email in the Google Console dashboard or in the JSON key.
- In the Google Analytics instructions of this repo's readme, update the email account that submitters need to grant access to.
- (For running the pipeline on GitHub Actions) Create an actions repository secret in this repo with the name
AUTH_GOOGLE
and value of the JSON key file contents.