From 146f0df0abcf876d4e6cc7e1e452ff6254a78c4c Mon Sep 17 00:00:00 2001 From: aegilops <41705651+aegilops@users.noreply.github.com> Date: Tue, 11 Jun 2024 08:46:33 +0100 Subject: [PATCH] Removed ^ in additional match to make it work --- jwt/README.md | 2 +- jwt/patterns.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/jwt/README.md b/jwt/README.md index 8b3ea7c1..fbdb5112 100644 --- a/jwt/README.md +++ b/jwt/README.md @@ -47,7 +47,7 @@ Add these additional matches to the [Secret Scanning Custom Pattern](https://doc - Not Match: ```regex - ^eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIs + eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIs ``` \ No newline at end of file diff --git a/jwt/patterns.yml b/jwt/patterns.yml index b4460f57..f4717eed 100644 --- a/jwt/patterns.yml +++ b/jwt/patterns.yml @@ -15,7 +15,7 @@ patterns: # don't match on JWT that are used in private GitHub issues - they now always start with: # {"iss":"github.com","aud":"raw.githubusercontent.com", additional_not_match: - - ^eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIs + - eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIs test: data: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoic2VydmljZV9yb2xlIiwiaWF0IjoxNjM2MzcxNDkzLCJleHAiOjE5NTE5NDc0OTN9.T365h6AcgnvibAWvN_rIiaFnOK5R1ZGqdEkPI45zsNs