Skip to content

Harden secret masking using regex or core.setSecret #466

@github-actions

Description

@github-actions

maskSensitiveInfo() in src/security/security.ts uses String.prototype.replaceAll to scrub tokens, which can miss edge cases when secrets contain regex‑like substrings or overlaps. Switch to an escaped‑regex approach (escapeRegExp) or leverage core.setSecret() for reliable masking in logs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions