mirror of
https://github.com/AikidoSec/safe-chain.git
synced 2026-05-26 20:20:49 +00:00
Initial commit
This commit is contained in:
parent
dd51a48435
commit
5eaf6ac3b3
51 changed files with 10087 additions and 1 deletions
14
src/environment/environment.js
Normal file
14
src/environment/environment.js
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
export function isCi() {
|
||||
const ciEnvironments = [
|
||||
"CI",
|
||||
"TF_BUILD", // Azure devops does not set CI, but TF_BUILD
|
||||
];
|
||||
|
||||
for (const env of ciEnvironments) {
|
||||
if (process.env[env]) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue