File tree Expand file tree Collapse file tree
packages/app/src/cli/services/app-security-engine/rules Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -26,14 +26,13 @@ interface SecretPattern {
2626
2727export const SECRET_PATTERNS : SecretPattern [ ] = [
2828 // Shopify credentials are recognized by value prefix, never by variable or
29- // key name. A secret-sounding name proves nothing — `.env.example` files
30- // legitimately assign placeholders to `SHOPIFY_API_SECRET`, and scoring
31- // those is how this check missed its own static-tier bar (provable facts,
32- // near-zero FPs). shpat_/shpca_/shppa_/shpss_ bodies are 32-char hex;
33- // shprt_/shpsb_/shptka_/shpua_ are alphanumeric. The first seven prefixes
34- // are already public via shopify.dev docs and published secret-scanning
35- // rules (gitleaks, GitHub partner patterns); shpua_ marks tokens issued
36- // while an app is still in development — the most likely to be committed.
29+ // key name — a secret-sounding name with a placeholder value (as in
30+ // committed `.env.example` files) is not evidence of a leak.
31+ // shpat_/shpca_/shppa_/shpss_ bodies are hex; shprt_/shpsb_/shptka_/shpua_
32+ // are alphanumeric. The first seven prefixes are already public via
33+ // shopify.dev docs and published secret-scanning rules (gitleaks, GitHub
34+ // partner patterns); shpua_ marks tokens issued while an app is still in
35+ // development — the most likely to be committed.
3736 {
3837 regex : / s h p (?: (?: a t | c a | p a | s s ) _ [ a - f A - F 0 - 9 ] { 16 , } | (?: r t | s b | t k a | u a ) _ [ a - z A - Z 0 - 9 ] { 16 , } ) / ,
3938 name : 'Shopify token' ,
You can’t perform that action at this time.
0 commit comments