You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The secret-scanning-alert schema component does not define any required fields, even though some fields are always present (e.g. primary keys). I can't tell on my end what the full list of fields that should be required are, but some obvious ones include:
number - unique ID for the alert
created_at
updated_at
url
html_url
state
secret_type
secret_type_display_name
secret
validity
Some fields are also marked nullable: true, so it's possible all fields are actually required (e.g. returned in a "GetAlert" response) with some being nullable instead.
For comparison, the code-scanning-alert and dependabot_alert (similar APIs also part of GitHub Advanced Security) have required fields.
Expected
The secret-scanning-alert schema component should define required fields.
Schema Inaccuracy
The
secret-scanning-alert
schema component does not define anyrequired
fields, even though some fields are always present (e.g. primary keys). I can't tell on my end what the full list of fields that should be required are, but some obvious ones include:number
- unique ID for the alertcreated_at
updated_at
url
html_url
state
secret_type
secret_type_display_name
secret
validity
Some fields are also marked
nullable: true
, so it's possible all fields are actually required (e.g. returned in a "GetAlert" response) with some being nullable instead.For comparison, the
code-scanning-alert
anddependabot_alert
(similar APIs also part of GitHub Advanced Security) have required fields.Expected
The
secret-scanning-alert
schema component should define required fields.Reproduction Steps
Using TypeScript, review type of fields in
alert
- they will all include| undefined
.The text was updated successfully, but these errors were encountered: