Skip to content

Commit

Permalink
feat: Add npm, Netlify and Pulumi tokens to secret patterns (#2210)
Browse files Browse the repository at this point in the history
  • Loading branch information
julienp authored Jul 1, 2024
1 parent dfb6314 commit 1b0dad0
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions crates/atuin-client/src/secrets.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,21 @@ pub static SECRET_PATTERNS: &[(&str, &str, TestValue)] = &[
),
("Stripe test key", "sk_test_[0-9a-zA-Z]{24}", TestValue::Single("sk_test_1234567890abcdefghijklmnop")),
("Stripe live key", "sk_live_[0-9a-zA-Z]{24}", TestValue::Single("sk_live_1234567890abcdefghijklmnop")),
(
"Netlify authentication token",
"nf[pcoub]_[0-9a-zA-Z]{36}",
TestValue::Single("nfp_nBh7BdJxUwyaBBwFzpyD29MMFT6pZ9wq5634"),
),
(
"npm token",
"npm_[A-Za-z0-9]{36}",
TestValue::Single("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"),
),
(
"Pulumi personal access token",
"pul-[0-9a-f]{40}",
TestValue::Single("pul-683c2770662c51d960d72ec27613be7653c5cb26"),
),
];

#[cfg(test)]
Expand Down

0 comments on commit 1b0dad0

Please sign in to comment.