@secretlint/secretlint-rule-github
Advanced tools
Comparing version 4.0.0 to 4.1.0
@@ -31,4 +31,5 @@ "use strict"; | ||
var _a; | ||
// token length should be 40 | ||
// https://github.blog/2021-04-05-behind-githubs-new-authentication-token-formats/ | ||
const GITHUB_TOKEN_PATTERN = /(?<type>ghp|gho|ghu|ghs|ghr)_[A-Za-z0-9_]{31,255}/g; | ||
const GITHUB_TOKEN_PATTERN = /(?<type>ghp|gho|ghu|ghs|ghr)_[A-Za-z0-9_]{36}/g; | ||
const results = source.content.matchAll(GITHUB_TOKEN_PATTERN); | ||
@@ -35,0 +36,0 @@ for (const result of results) { |
{ | ||
"name": "@secretlint/secretlint-rule-github", | ||
"version": "4.0.0", | ||
"version": "4.1.0", | ||
"description": "A secretlint rule for sendgrid api keys.", | ||
@@ -67,3 +67,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "58b3e051ef5e739877e176b670dd49e93226cd48" | ||
"gitHead": "1499dd8224123deeb6c570590db762f37e6cb033" | ||
} |
@@ -57,4 +57,5 @@ import { | ||
}) { | ||
// token length should be 40 | ||
// https://github.blog/2021-04-05-behind-githubs-new-authentication-token-formats/ | ||
const GITHUB_TOKEN_PATTERN = /(?<type>ghp|gho|ghu|ghs|ghr)_[A-Za-z0-9_]{31,255}/g; | ||
const GITHUB_TOKEN_PATTERN = /(?<type>ghp|gho|ghu|ghs|ghr)_[A-Za-z0-9_]{36}/g; | ||
const results = source.content.matchAll(GITHUB_TOKEN_PATTERN); | ||
@@ -61,0 +62,0 @@ for (const result of results) { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
13938
206