Skip to content

Commit

Permalink
Add rule for Figma personal access tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
bradlarsen committed Feb 7, 2023
1 parent 818fd7a commit 31ef9e6
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
- DigitalOcean Application Access Token
- DigitalOcean Personal Access Token
- DigitalOcean Refresh Token
- Figma Personal Access Token
- GitLab Personal Access Token
- GitLab Pipeline Trigger Token
- GitLab Runner Registration Token
Expand Down
25 changes: 25 additions & 0 deletions data/default/rules/figma.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
rules:

- name: Figma Personal Access Token

# The key material looks like a v4 UUID with an extra 4 hex digits up front
pattern: |
(?x)(?i)
figma.{0,20}
\b
(
[0-9a-f]{4}-
[0-9a-f]{8}-
[0-9a-f]{4}-
[0-9a-f]{4}-
[0-9a-f]{4}-
[0-9a-f]{12}
)
\b
references:
- https://www.figma.com/developers/api
- https://www.figma.com/developers/api#access-tokens

examples:
- "--header='X-Figma-Token: 1394-0ca7a5be-8e22-40ee-8c40-778d41ab2313'"

0 comments on commit 31ef9e6

Please sign in to comment.