Skip to content

Commit

Permalink
fix: remove is_ignored from json output
Browse files Browse the repository at this point in the history
  • Loading branch information
gg-mmill committed Dec 19, 2024
1 parent 4ad5f0c commit f010198
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion ggshield/verticals/secret/output/schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ class FlattenedPolicyBreak(BaseSchema):
incident_url = fields.String(required=True, dump_default="")
incident_details = fields.Nested(SecretIncidentSchema)
known_secret = fields.Bool(required=True, dump_default=False)
is_ignored = fields.Bool(required=False)
ignore_reason = fields.String(required=False)


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,6 @@ def serialized_secret(
flattened_dict["incident_details"] = details

if secrets[0].ignore_reason is not None:
flattened_dict["is_ignored"] = True
flattened_dict["ignore_reason"] = secrets[

Check warning on line 136 in ggshield/verticals/secret/output/secret_json_output_handler.py

View check run for this annotation

Codecov / codecov/patch

ggshield/verticals/secret/output/secret_json_output_handler.py#L136

Added line #L136 was not covered by tests
0
].ignore_reason.to_machine_readable()
Expand Down

0 comments on commit f010198

Please sign in to comment.