Skip to content

V2 Heroku detector requires a change to the regex #4510

@Chemo850

Description

@Chemo850

The regex that is currently in place is \b(HRKU-AA[0-9a-zA-Z_-]{58})\b for the V2 pattern. This pattern has an error, as Heroku does not mint tokens that include "AA" as part of a standard prefix. The prefix only includes "HRKU-" for any newly minted Heroku tokens. The additional added prefix values might force the rule to many many hardcoded Heroku tokens. Additionally, Heroku tokens can also include a backslash.

Recommended Pattern: \b(HRKU-[0-9a-zA-Z_-]{60})\b

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions