diff --git a/changelog.d/20251114_113150_kp2681_scrt_6052_bug_marshmallow_validationerror_on_tags_during_ggshield.md b/changelog.d/20251114_113150_kp2681_scrt_6052_bug_marshmallow_validationerror_on_tags_during_ggshield.md new file mode 100644 index 00000000..a25126d5 --- /dev/null +++ b/changelog.d/20251114_113150_kp2681_scrt_6052_bug_marshmallow_validationerror_on_tags_during_ggshield.md @@ -0,0 +1,41 @@ + + + + + + + +### Fixed + +- Added missing tags PUBLIC, VAULTED, REVOCABLE_BY_GG + + diff --git a/pygitguardian/models.py b/pygitguardian/models.py index e8baf808..f82c26ed 100644 --- a/pygitguardian/models.py +++ b/pygitguardian/models.py @@ -911,12 +911,15 @@ class Detector(Base, FromDictMixin): "CHECK_RUN_SKIP_LOW_RISK", "CHECK_RUN_SKIP_TEST_CRED", "IGNORED_IN_CHECK_RUN", - "FALSE_POSITIVE", + "PUBLIC", "PUBLICLY_EXPOSED", "PUBLICLY_LEAKED", "REGRESSION", "SENSITIVE_FILE", "TEST_FILE", + "FALSE_POSITIVE", + "VAULTED", + "REVOCABLE_BY_GG", ] IgnoreReason = Literal["test_credential", "false_positive", "low_risk"] OccurrenceKind = Literal["realtime", "historical"] diff --git a/tests/test_models.py b/tests/test_models.py index 12d9d92d..41ed6054 100644 --- a/tests/test_models.py +++ b/tests/test_models.py @@ -323,7 +323,13 @@ def test_document_handle_surrogates(self): "validity": "valid", "resolved_at": None, "share_url": "https://dashboard.gitguardian.com/share/incidents/11111111-11111", - "tags": ["FROM_HISTORICAL_SCAN", "SENSITIVE_FILE"], + "tags": [ + "FROM_HISTORICAL_SCAN", + "SENSITIVE_FILE", + "REVOCABLE_BY_GG", + "PUBLIC", + "VAULTED", + ], "feedback_list": [ { "created_at": "2021-05-20T12:40:55.662949Z",