diff options
author | Divy Srivastava <dj.srivastava23@gmail.com> | 2024-02-29 21:48:47 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-29 21:48:47 +0530 |
commit | 9ffc34c1599e9d45a6d419166347c52b7859b649 (patch) | |
tree | 393e65f1d737a5324fe2f46e7a235d8b85d30f52 /tests/util/server/src/lib.rs | |
parent | ab7173346932b5f638094bdceda277ab157db287 (diff) |
feat(publish): enable package provenance by default on github actions (#22635)
Diffstat (limited to 'tests/util/server/src/lib.rs')
-rw-r--r-- | tests/util/server/src/lib.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/util/server/src/lib.rs b/tests/util/server/src/lib.rs index c65526ca3..e06ba2b39 100644 --- a/tests/util/server/src/lib.rs +++ b/tests/util/server/src/lib.rs @@ -60,12 +60,14 @@ pub fn env_vars_for_npm_tests() -> Vec<(String, String)> { pub fn env_vars_for_jsr_tests() -> Vec<(String, String)> { vec![ ("JSR_URL".to_string(), jsr_registry_url()), + ("DISABLE_JSR_PROVENANCE".to_string(), "true".to_string()), ("NO_COLOR".to_string(), "1".to_string()), ] } pub fn env_vars_for_jsr_provenance_tests() -> Vec<(String, String)> { let mut envs = env_vars_for_jsr_tests(); + envs.retain(|(key, _)| key != "DISABLE_JSR_PROVENANCE"); envs.extend(vec![ ("REKOR_URL".to_string(), rekor_url()), ("FULCIO_URL".to_string(), fulcio_url()), @@ -112,6 +114,7 @@ pub fn env_vars_for_jsr_npm_tests() -> Vec<(String, String)> { vec![ ("NPM_CONFIG_REGISTRY".to_string(), npm_registry_url()), ("JSR_URL".to_string(), jsr_registry_url()), + ("DISABLE_JSR_PROVENANCE".to_string(), "true".to_string()), ("NO_COLOR".to_string(), "1".to_string()), ] } |