MCPcopy
hub / github.com/ampproject/amphtml / decodePercyTokenForCi

Function decodePercyTokenForCi

build-system/tasks/visual-diff/index.js:94–98  ·  view source on GitHub ↗

* Decode the write-only Percy token during CI builds.

()

Source from the content-addressed store, hash-verified

92 * Decode the write-only Percy token during CI builds.
93 */
94function decodePercyTokenForCi() {
95 if (isCiBuild()) {
96 process.env['PERCY_TOKEN'] = atob(process.env.PERCY_TOKEN_ENCODED || '');
97 }
98}
99
100/**
101 * Override PERCY_* environment variables if passed via amp task parameters.

Callers 1

visualDiffFunction · 0.85

Calls 1

isCiBuildFunction · 0.85

Tested by

no test coverage detected