Skip to content

Commit 5aba2e5

Browse files
Merge pull request #171 from GitGuardian/ctourriere/add_honeytokens_new_scopes
chore: add honeytokens:check scope
2 parents 015c125 + 62c4f16 commit 5aba2e5

2 files changed

Lines changed: 43 additions & 0 deletions

File tree

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
<!--
2+
A new scriv changelog fragment.
3+
4+
Uncomment the section that is right (remove the HTML comment wrapper).
5+
For top level release notes, leave all the headers commented out.
6+
-->
7+
8+
<!--
9+
### Removed
10+
11+
- A bullet item for the Removed category.
12+
13+
-->
14+
15+
### Added
16+
17+
- New `honeytokens:check` token scope for prefix-based honeytoken lookup.
18+
19+
<!--
20+
### Changed
21+
22+
- A bullet item for the Changed category.
23+
24+
-->
25+
<!--
26+
### Deprecated
27+
28+
- A bullet item for the Deprecated category.
29+
30+
-->
31+
<!--
32+
### Fixed
33+
34+
- A bullet item for the Fixed category.
35+
36+
-->
37+
<!--
38+
### Security
39+
40+
- A bullet item for the Security category.
41+
42+
-->

pygitguardian/models.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -762,6 +762,7 @@ class TokenScope(str, Enum):
762762
AUDIT_LOGS_READ = "audit_logs:read"
763763
HONEYTOKENS_READ = "honeytokens:read"
764764
HONEYTOKENS_WRITE = "honeytokens:write"
765+
HONEYTOKENS_CHECK = "honeytokens:check"
765766
API_TOKENS_READ = "api_tokens:read"
766767
API_TOKENS_WRITE = "api_tokens:write"
767768
IP_ALLOWLIST_READ = "ip_allowlist:read"

0 commit comments

Comments
 (0)