Skip to content

fix(rules): leaked-secrets finding in an external script names no page, affectedPagesCount is 0 #1755

Closed

Description

@nc9

In run 01M757TPD9XB453C5MNP5M29HV the security/leaked-secrets item is Stripe Live Key: sk_liv********************cHf3 found in external-script (https://nutshop.squirrelscan.com/_fault/shop-config.js); the topIssues row has affectedPagesCount: 0 and no pages. The page that loads the script (/products/crunchy-peanut-butter) is not named, and the inline copy of the same key in that page's HTML (window.__SHOP_CONFIG__) is not reported as a separate occurrence. The fix action therefore cannot point at a page. The rule is reported as severity error with details.severity: critical.

Acceptance Criteria

  • The finding lists the page or pages that load the script.
  • An inline occurrence in page HTML is reported with its page.
  • The rule name and message do not call a hard-coded key an environment variable unless the evidence shows one (the rule is named "Leaked Environment Variables").

Activity

  1. added
    bug
    size: S
    rules
    on Nov 11, 2026
  2. added theissue type on Nov 11, 2026
  3. nc9 commented on Nov 12, 2026

    @nc9
    ContributorAuthor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugrulessize: S

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions