Skip to content

Commit 1b0dad0

Browse files
authored
feat: Add npm, Netlify and Pulumi tokens to secret patterns (#2210)
1 parent dfb6314 commit 1b0dad0

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

crates/atuin-client/src/secrets.rs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,21 @@ pub static SECRET_PATTERNS: &[(&str, &str, TestValue)] = &[
9797
),
9898
("Stripe test key", "sk_test_[0-9a-zA-Z]{24}", TestValue::Single("sk_test_1234567890abcdefghijklmnop")),
9999
("Stripe live key", "sk_live_[0-9a-zA-Z]{24}", TestValue::Single("sk_live_1234567890abcdefghijklmnop")),
100+
(
101+
"Netlify authentication token",
102+
"nf[pcoub]_[0-9a-zA-Z]{36}",
103+
TestValue::Single("nfp_nBh7BdJxUwyaBBwFzpyD29MMFT6pZ9wq5634"),
104+
),
105+
(
106+
"npm token",
107+
"npm_[A-Za-z0-9]{36}",
108+
TestValue::Single("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"),
109+
),
110+
(
111+
"Pulumi personal access token",
112+
"pul-[0-9a-f]{40}",
113+
TestValue::Single("pul-683c2770662c51d960d72ec27613be7653c5cb26"),
114+
),
100115
];
101116

102117
#[cfg(test)]

0 commit comments

Comments
 (0)