-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgitlab.yaml
74 lines (73 loc) · 2 KB
/
gitlab.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
webhooks:
gitlab:
pipeline:
name: "Gitlab pipeline events"
description: "Maps pipeline events including build and project properties."
author: "Sam Jones <[email protected]>"
mappingVersion: "1.0"
sourceVersion: "Gitlab.com current"
mapping:
status:
success: $.object_attributes[?(@.status == "success")]
warn: $.object_attributes[?(@.status == "canceled")]
error: $.object_attributes[?(@.status == "failed")]
event:
- $.commit.message
ident:
- $.object_attributes.ref
severity:
s3: "3"
link:
- $.commit.url
category:
- $.project.name
message:
- $.project.name
- $.object_attributes.stages
- $.object_attributes.status
messagePropertySections:
- name: "project"
selectors:
- $.project
- name: "user"
selectors:
- $.user
- name: "commit"
selectors:
- $.commit
- name: "object_attributes"
selectors:
- $.object_attributes
- name: "builds"
selectors:
- $.builds[*]
issues:
name: "Gitlab push events"
description: "Maps push events including project and commit properties."
author: "Sam Jones <[email protected]>"
mappingVersion: "1.0"
sourceVersion: "Gitlab.com current"
mapping:
status:
info: true
event:
- $.user_username
- pushed to
- $.project.name
ident:
- $.ref
severity:
s3: "3"
link:
- $.commit.url
category:
- $.project.name
message:
- $.commits[*].message
messagePropertySections:
- name: "project"
selectors:
- $.project
- name: "commits"
selectors:
- $.commits[*]