@@ -58,6 +58,7 @@ EVAL-asset_name = if(isnotnull('release.assets{}.name'), 'release.assets{}.name'
58
58
EVAL-asset_uploader_login = if(isnotnull('release.assets{}.uploader.login'), 'release.assets{}.uploader.login', null())
59
59
EVAL-assigned_reviewers = if(isnotnull('pull_request.requested_reviewers{}.login'), 'pull_request.requested_reviewers{}.login', null())
60
60
EVAL-assigned_user = if(isnotnull('issue.assignee.login'), 'issue.assignee.login', 'assignee.login')
61
+ EVAL-attempt_number = if(isnotnull('workflow_run.run_attempt'), 'workflow_run.run_attempt',null())
61
62
EVAL-branch = if(('ref_type'=="branch" AND 'ref'!=""), 'ref', if(isnotnull('commit_branch'), 'ref', null()))
62
63
EVAL-body = "Secrete Leakage: ".'alert.secret_type'
63
64
EVAL-category = if(isnotnull(alert_description), "code", if(isnotnull(affected_package_name), "dependency", if(isnotnull(secret_type), "secret", "")))
@@ -74,6 +75,7 @@ EVAL-commits_author_list = if(isnotnull('commits{}.author.username'), 'commits{}
74
75
EVAL-commits_list = if(isnotnull('commits{}.id'), 'commits{}.id', null())
75
76
EVAL-commits_message_list = if(isnotnull('commits{}.message'), 'commits{}.message', null())
76
77
EVAL-commits_timestamp_list = if(isnotnull('commits{}.timestamp'), 'commits{}.timestamp', null())
78
+ EVAL-completed = if(action="completed",_time, NULL)
77
79
EVAL-current_priority = if('issue.labels{}.name' like "Priority%", mvfilter(match('issue.labels{}.name', "[pP]riority:\sLow|[pP]riority:\sHigh|[pP]riority:\sMedium")), null())
78
80
EVAL-current_push = if(isnotnull('after'), 'after', null())
79
81
EVAL-description = "Secrete Leakage: ".'alert.secret_type'
@@ -99,9 +101,11 @@ EVAL-latest_commit_author_user = if((isnotnull('commits{}.id') AND isnull('commi
99
101
EVAL-latest_commit_date = if((isnotnull('commits{}.id') AND isnull('commit_timestamp')), 'head_commit.timestamp', if((isnotnull('commits{}.id') AND isnotnull('commit_timestamp')), 'commit_timestamp', ""))
100
102
EVAL-latest_commit_hash = if((isnotnull('commits{}.id') AND isnull('commit_hash')), 'head_commit.id', if((isnotnull('commits{}.id') AND isnotnull('commit_hash')), 'commit_hash', if(isnotnull(after), after, null())))
101
103
EVAL-latest_commit_message = if((isnotnull('commits{}.id') AND isnull('commit_message')), 'head_commit.message', if((isnotnull('commits{}.id') AND isnotnull('commit_message')), 'commit_message', ""))
104
+ EVAL-name = if(isnotnull('workflow_job.name'), 'workflow_job.name',if(isnotnull('workflow_run.name'), 'workflow_run.name',null()))
102
105
EVAL-object_attrs = "branch:" + pull_request_title + "|business:" + business
103
106
EVAL-object_category = if(isnotnull(workflow_run.event), "workflow", if(isnotnull(repo), "repository", ""))
104
107
EVAL-organization_name = if(isnotnull('organization.login'), 'organization.login', null())
108
+ EVAL-pipeline_id = if(isnotnull('workflow.id'), 'workflow.id', if(isnotnull('workflow_job.id'), 'workflow_job.id', null()))
105
109
EVAL-pr_author_login = if(isnotnull('sender.login'), 'sender.login', null())
106
110
EVAL-pr_created_date = if(isnotnull('pull_request.created_at'), 'pull_request.created_at', null())
107
111
EVAL-pr_id = if((isnotnull('pull_request.number')), 'pull_request.number', if((isnotnull('number')), 'number', null()))
@@ -125,8 +129,15 @@ EVAL-repository_organization = if(isnotnull('organization.login'), 'organization
125
129
EVAL-result = "success"
126
130
EVAL-review_author_login = if(isnotnull('review.user.login'), 'review.user.login', null())
127
131
EVAL-review_state = if(isnotnull('review.state'), 'review.state', null())
132
+ EVAL-run_id = if(isnotnull('workflow_job.run_id'), 'workflow_job.run_id', if(isnotnull('workflow_run.id'), 'workflow_run.id', null()))
133
+ EVAL-run_number = if(isnotnull('workflow_run.run_number'), 'workflow_run.run_number', null())
134
+ EVAL-severity = if(isnotnull(secret_type),"critical",severity)
128
135
EVAL-severity_id = CASE(severity=="critical",4, severity_level=="critical",4, severity=="high",3, severity_level=="high",3, severity=="moderate",2,severity_level=="moderate", 2, isnotnull(secret_type),4, true=true, 1)
129
136
EVAL-signature = CASE(isnull(alert_description), UPPER(severity) + " Dependency Vulnerability on package " + affected_package_name, 1=1, alert_description)
137
+ EVAL-started = if(action="requested",_time, if(isnotnull('workflow_run.run_started_at'),round(strptime('workflow_run.run_started_at', "%Y-%m-%dT%H:%M:%SZ"),0), if(isnotnull('workflow_job.started_at'), round(strptime('workflow_job.started_at', "%Y-%m-%dT%H:%M:%SZ"),0), null())))
138
+ EVAL-started_by_id = if(isnotnull('sender.login'), 'sender.login', null())
139
+ EVAL-started_by_name = if(isnotnull('sender.login'), 'sender.login', null())
140
+ EVAL-status = if(isnotnull('workflow_job.status'), 'workflow_job.status', if(isnotnull('workflow_run.status'), 'workflow_run.status', null()))
130
141
EVAL-status_update_date = if(('action'!="" AND isnotnull('issue.updated_at')), 'issue.updated_at', null())
131
142
EVAL-status_current = if(action=="deleted", "deleted", 'issue.state')
132
143
EVAL-submitter_user = if(isnotnull('issue.user.login'), 'issue.user.login', null())
0 commit comments