Skip to content

Commit 11aa579

Browse files
committed
fix(scopes): add missing existing scope
Scope can be defined but is lot listed here, leading to tokens with this permission to fail
1 parent 684332d commit 11aa579

File tree

2 files changed

+42
-0
lines changed

2 files changed

+42
-0
lines changed
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
<!--
2+
A new scriv changelog fragment.
3+
4+
Uncomment the section that is right (remove the HTML comment wrapper).
5+
-->
6+
7+
<!--
8+
### Removed
9+
10+
- A bullet item for the Removed category.
11+
12+
-->
13+
<!--
14+
### Added
15+
16+
- A bullet item for the Added category.
17+
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+
- Missing scope leading to validation errors
35+
36+
<!--
37+
### Security
38+
39+
- A bullet item for the Security category.
40+
41+
-->

pygitguardian/models.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -772,6 +772,7 @@ class TokenScope(str, Enum):
772772
CUSTOM_TAGS_WRITE = "custom_tags:write"
773773
SECRET_READ = "secrets:read"
774774
SCAN_CREATE_INCIDENTS = "scan:create-incidents"
775+
PUBLIC_PERIMETER_VIEW = "public-perimeter:read"
775776

776777

777778
class APITokensResponseSchema(BaseSchema):

0 commit comments

Comments
 (0)