55Notifiers
66=========
77
8- The last phase in a typical compliance-tool check run is the notification
8+ The last phase in a typical framework check run is the notification
99system. Multiple notifiers can be targeted as part of this phase by using
1010the ``--notify `` option on the ``compliance --check `` command. Valid
11- notifier options are ``stdout ``, ``slack ``, ``pagerduty ``, ``ghe_issues `` and,
12- ``locker ``. The general idea behind the notification system is that each
13- ``test_ `` can generate a short notification that has the following components:
11+ notifier options are ``stdout ``, ``slack ``, ``pagerduty ``, ``findings ``,
12+ ``gh_issues `` and, ``locker ``. The general idea behind the notification
13+ system is that each ``test_ `` can generate a short notification that has the
14+ following components:
1415
1516* title (mandatory): should be a ``property `` of the
1617 ``ComplianceCheck ``:
@@ -56,7 +57,7 @@ warnings, the number of issues fixed by fixers (if applicable), links to report
5657evidences generated (if applicable) and a link to the check runbook that
5758contains remediation instructions (if applicable).
5859
59- The following sections describe the notifiers supported by the compliance-tool .
60+ The following sections describe the notifiers supported by the framework .
6061
6162File descriptor
6263---------------
@@ -144,26 +145,26 @@ Channel ID ``11223344`` can be obtained quickly from the URL to a
144145message of the target private channel. Of course, the Slack App needs
145146to be part of the private channel.
146147
147- GitHub Enterprise Issue
148- -----------------------
148+ GitHub Issue
149+ ------------
149150
150151Depending on the configuration this notifier will create or update a GitHub
151152issue per check or as a summary issue per accreditation. If an open issue
152153already exists then the notification will be added to the existing issue as
153154an issue comment otherwise a new issue will be created.
154155
155156This notifier needs to know the credentials for interacting with the provided
156- GitHub Enterprise repositories. Your credentials should, at a minimum, have
157+ GitHub repositories. Your credentials should, at a minimum, have
157158``write `` access to all repositories specified for notifications to function
158- correctly. Provide your GitHub Enterprise id and personal access token in your
159+ correctly. Provide your GitHub id and personal access token in your
159160credentials file as shown below::
160161
161- [github_enterprise ]
162- username=my-ghe -id
163- token=my-ghe -personal-access-token
162+ [github ]
163+ username=my-gh -id
164+ token=my-gh -personal-access-token
164165
165- GHE Summary Issue by Accreditation
166- **********************************
166+ GH Summary Issue by Accreditation
167+ *********************************
167168
168169A configuration element for each accreditation is necessary to send summary
169170issue notifications using this notifier. Summary notifications send all
@@ -172,8 +173,8 @@ configuration should consist of a list of repositories to send the notifications
172173to, optionally a project and column to assign your notification to, along
173174with a "summary_issue" sub-document dictionary that is used by the notifier to
174175configure the summary issue. To specify a repository provide the GitHub
175- Enterprise "owner" and "repository" in the form of ``owner/repository ``.
176- The "summary_issue" can be configured with the following fields:
176+ "owner" and "repository" in the form of ``owner/repository ``. The "summary_issue"
177+ can be configured with the following fields:
177178
178179- "title"
179180 - Required
@@ -206,11 +207,11 @@ The "summary_issue" can be configured with the following fields:
206207 upon creation
207208- "assignees"
208209 - Optional
209- - List of strings (GHE user IDs)
210+ - List of strings (GH user IDs)
210211 - Assigns the issue to the list of users
211212- "rotation"
212213 - Optional
213- - List of lists of strings (GHE user IDs)
214+ - List of lists of strings (GH user IDs)
214215 - The "frequency" is required when setting a rotation
215216 - When present with "frequency", overrides the "assignees" setting
216217 - Assigns the issue to the list of users based on the frequency and order
@@ -222,7 +223,7 @@ compliance checks::
222223
223224 {
224225 "notify": {
225- "ghe_issues ": {
226+ "gh_issues ": {
226227 "accr1": {
227228 "repo": ["my-org/accr1-repo"],
228229 "project": {"Super cool project": "Triage"},
@@ -242,15 +243,15 @@ compliance checks::
242243 }
243244 }
244245
245- GHE Issue Per Check
246- *******************
246+ GH Issue Per Check
247+ ******************
247248
248249A configuration element for each accreditation is necessary to send
249250notifications per check using this notifier. Each accreditation configuration
250251should consist of a list of repositories to send the notifications to, a
251252list of check execution statuses to send notifications for, and optionally a
252253list of projects boards and project columns to add the notification issues to.
253- To specify a repository provide the GitHub Enterprise "owner" and "repository"
254+ To specify a repository provide the GitHub "owner" and "repository"
254255in the form of ``owner/repository ``. Valid status values include "pass",
255256"warn", "fail", and "error". If no status configuration is provided then the
256257"fail" status is used as the default. Finally to specify project boards to
@@ -261,7 +262,7 @@ with the ``-C`` option when executing your compliance checks::
261262
262263 {
263264 "notify": {
264- "ghe_issues ": {
265+ "gh_issues ": {
265266 "accr1": {
266267 "repo": ["my-org/accr1-repo"],
267268 "project": {"Super cool project": "Triage"},
0 commit comments