Skip to content

Commit aac4202

Browse files
committed
Add fine-grained tokens to GITHUB_TOKEN_PATTERNS
1 parent 55252c7 commit aac4202

File tree

5 files changed

+25
-5
lines changed

5 files changed

+25
-5
lines changed

lib/analyze-action-post.js

Lines changed: 5 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/init-action-post.js

Lines changed: 5 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/start-proxy-action-post.js

Lines changed: 5 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/upload-sarif-action-post.js

Lines changed: 5 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/artifact-scanner.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,13 @@ import { getErrorMessage } from "./util";
1313
*/
1414
const GITHUB_TOKEN_PATTERNS = [
1515
{
16-
name: "Personal Access Token",
16+
name: "Personal Access Token (Classic)",
1717
pattern: /\bghp_[a-zA-Z0-9]{36}\b/g,
1818
},
19+
{
20+
name: "Personal Access Token (Fine-grained)",
21+
pattern: /\bgithub_pat_[a-zA-Z0-9_]+\b/g,
22+
},
1923
{
2024
name: "OAuth Access Token",
2125
pattern: /\bgho_[a-zA-Z0-9]{36}\b/g,

0 commit comments

Comments
 (0)