Skip to content

leaked-secrets: scripts beyond scriptRuleLimit in store_scripts mode are not counted as unfetched #1757

Closed

Description

@nc9

In store_scripts mode adapter.ts slices fetched scripts to scriptRuleLimit; the remainder (PreFetchedAssets.scriptsNotRead) never reaches ctx.site, so security/leaked-secrets (with #1749's leaked-secrets-unfetched) does not count them as unread, and a secret in one of those scripts can never be found nor reported as a coverage gap.

Acceptance Criteria

  • Scripts dropped by scriptRuleLimit reach the rule as a count (and URLs, capped) and appear in leaked-secrets-unfetched; the rule withholds its pass while any exist.
  • Engine-level test with more scripts than the limit.

Activity

  1. added
    bug
    size: XS
    rules
    security
    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

    bugrulessecuritysize: XS

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions