@@ -10,6 +10,8 @@ https://docs.github.com/en/webhooks/webhook-events-and-payloads
10
10
Each section below describes how to determine the CloudEvents attributes
11
11
based on the specified event.
12
12
13
+ For time attribute, if the proposed value is null, the default timestamp should be used.
14
+
13
15
### BranchProtectionConfigurationEvent
14
16
15
17
| CloudEvents Attribute | Value |
@@ -552,18 +554,18 @@ based on the specified event.
552
554
553
555
### PackageEvent
554
556
555
- | CloudEvents Attribute | Value |
556
- | :-------------------- | :------------------------------------- |
557
- | ` id ` | "X-GitHub-Delivery" HTTP header value |
558
- | ` source ` | "repository.url" value |
559
- | ` specversion ` | ` 1.0 ` |
560
- | ` type ` | ` com.github.package. ` + "action" value |
561
- | ` datacontentencoding ` | Omit |
562
- | ` datacontenttype ` | ` application/json ` |
563
- | ` dataschema ` | Omit |
564
- | ` subject ` | "package.id" value |
565
- | ` time ` | "package.(updated \| created) \_ at " value |
566
- | ` data ` | Content of HTTP request body |
557
+ | CloudEvents Attribute | Value |
558
+ | :-------------------- | :------------------------------------------------------------------------- |
559
+ | ` id ` | "X-GitHub-Delivery" HTTP header value |
560
+ | ` source ` | "repository.url" value |
561
+ | ` specversion ` | ` 1.0 ` |
562
+ | ` type ` | ` com.github.package. ` + "action" value |
563
+ | ` datacontentencoding ` | Omit |
564
+ | ` datacontenttype ` | ` application/json ` |
565
+ | ` dataschema ` | Omit |
566
+ | ` subject ` | "package.id" value |
567
+ | ` time ` | "package.updated_at" value, unless "null", then "package.created_at " value |
568
+ | ` data ` | Content of HTTP request body |
567
569
568
570
### PageBuildEvent
569
571
@@ -882,33 +884,33 @@ based on the specified event.
882
884
883
885
### SecretScanningAlertEvent
884
886
885
- | CloudEvents Attribute | Value |
886
- | :-------------------- | :--------------------------------------------------- |
887
- | ` id ` | "X-GitHub-Delivery" HTTP header value |
888
- | ` source ` | "repository.url" value |
889
- | ` specversion ` | ` 1.0 ` |
890
- | ` type ` | ` com.github.secret_scanning_alert. ` + "action" value |
891
- | ` datacontentencoding ` | Omit |
892
- | ` datacontenttype ` | ` application/json ` |
893
- | ` dataschema ` | Omit |
894
- | ` subject ` | "alert.number" value |
895
- | ` time ` | "alert.updated_at" value or " alert.created_at" |
896
- | ` data ` | Content of HTTP request body |
887
+ | CloudEvents Attribute | Value |
888
+ | :-------------------- | :---------------------------------------------------------------------- |
889
+ | ` id ` | "X-GitHub-Delivery" HTTP header value |
890
+ | ` source ` | "repository.url" value |
891
+ | ` specversion ` | ` 1.0 ` |
892
+ | ` type ` | ` com.github.secret_scanning_alert. ` + "action" value |
893
+ | ` datacontentencoding ` | Omit |
894
+ | ` datacontenttype ` | ` application/json ` |
895
+ | ` dataschema ` | Omit |
896
+ | ` subject ` | "alert.number" value |
897
+ | ` time ` | "alert.updated_at" value , unless "null", then " alert.created_at" value |
898
+ | ` data ` | Content of HTTP request body |
897
899
898
900
### SecretScanningAlertLocationEvent
899
901
900
- | CloudEvents Attribute | Value |
901
- | :-------------------- | :------------------------------------------------------------ |
902
- | ` id ` | "X-GitHub-Delivery" HTTP header value |
903
- | ` source ` | "repository.url" value |
904
- | ` specversion ` | ` 1.0 ` |
905
- | ` type ` | ` com.github.secret_scanning_alert_location. ` + "action" value |
906
- | ` datacontentencoding ` | Omit |
907
- | ` datacontenttype ` | ` application/json ` |
908
- | ` dataschema ` | Omit |
909
- | ` subject ` | "alert.number" value |
910
- | ` time ` | "alert.updated_at" value or " alert.created_at" |
911
- | ` data ` | Content of HTTP request body |
902
+ | CloudEvents Attribute | Value |
903
+ | :-------------------- | :---------------------------------------------------------------------- |
904
+ | ` id ` | "X-GitHub-Delivery" HTTP header value |
905
+ | ` source ` | "repository.url" value |
906
+ | ` specversion ` | ` 1.0 ` |
907
+ | ` type ` | ` com.github.secret_scanning_alert_location. ` + "action" value |
908
+ | ` datacontentencoding ` | Omit |
909
+ | ` datacontenttype ` | ` application/json ` |
910
+ | ` dataschema ` | Omit |
911
+ | ` subject ` | "alert.number" value |
912
+ | ` time ` | "alert.updated_at" value , unless "null", then " alert.created_at" value |
913
+ | ` data ` | Content of HTTP request body |
912
914
913
915
### SecurityAdvisoryEvent
914
916
0 commit comments