summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDivy Srivastava <dj.srivastava23@gmail.com>2024-02-29 21:48:47 +0530
committerGitHub <noreply@github.com>2024-02-29 21:48:47 +0530
commit9ffc34c1599e9d45a6d419166347c52b7859b649 (patch)
tree393e65f1d737a5324fe2f46e7a235d8b85d30f52 /tests
parentab7173346932b5f638094bdceda277ab157db287 (diff)
feat(publish): enable package provenance by default on github actions (#22635)
Diffstat (limited to 'tests')
-rw-r--r--tests/integration/publish_tests.rs2
-rw-r--r--tests/util/server/src/lib.rs3
2 files changed, 4 insertions, 1 deletions
diff --git a/tests/integration/publish_tests.rs b/tests/integration/publish_tests.rs
index 4199c924f..befd3826e 100644
--- a/tests/integration/publish_tests.rs
+++ b/tests/integration/publish_tests.rs
@@ -166,7 +166,7 @@ itest!(successful {
});
itest!(provenance {
- args: "publish --provenance",
+ args: "publish",
output: "publish/successful_provenance.out",
cwd: Some("publish/successful"),
envs: env_vars_for_jsr_provenance_tests(),
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()),
]
}