From 7d202db152580abfb24fbb6aae772db6981fa8c2 Mon Sep 17 00:00:00 2001 From: Remi Cattiau Date: Wed, 24 Jul 2024 17:12:49 -0700 Subject: [PATCH] feat: add missing CodeScanningAlertEvent Signed-off-by: Remi Cattiau --- cloudevents/adapters/github.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/cloudevents/adapters/github.md b/cloudevents/adapters/github.md index e7e8a1f2..fc67630c 100644 --- a/cloudevents/adapters/github.md +++ b/cloudevents/adapters/github.md @@ -70,6 +70,21 @@ based on the specified event. | `time` | "check_suite.updated_at" value | | `data` | Content of HTTP request body | +### CodeScanningAlertEvent + +| CloudEvents Attribute | Value | +| :-------------------- | :------------------------------------------------- | +| `id` | "X-GitHub-Delivery" HTTP header value | +| `source` | "repository.url" value | +| `specversion` | `1.0` | +| `type` | `com.github.code_scanning_alert.` + "action" value | +| `datacontentencoding` | Omit | +| `datacontenttype` | `application/json` | +| `dataschema` | Omit | +| `subject` | "alert.number" value | +| `time` | Current time | +| `data` | Content of HTTP request body | + ### CommitCommentEvent | CloudEvents Attribute | Value |