Socket
Socket
Sign inDemoInstall

@secretlint/secretlint-rule-github

Package Overview
Dependencies
Maintainers
1
Versions
60
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@secretlint/secretlint-rule-github - npm Package Compare versions

Comparing version 4.0.0 to 4.1.0

3

lib/index.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc