You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A composite action to verify that Develocity Terms of Service have been accepted.
73
+
This composite action is a meta action to simplify the logic on consumer side.
82
74
83
-
This action checks if the user submitting a pull-request has accepted the Terms of Service.
84
-
If the user has previously accepted the terms, then the action succeeds.
85
-
If not, a comment is made on the pull-request asking the user to accept and the action fails. The user can then accept the Terms of Service by responding with a specific comment on the pull-request.
86
-
87
-
See the [cla-assistant-lite documentation](https://github.com/marketplace/actions/cla-assistant-lite) for more details.
75
+
The action will download any saved Build Scan® and publish them to Develocity after having checked that the Terms of Service were accepted.
This action should be configured to respond to the following event triggers:
96
86
- `workflow_run`: to check if the user has previously accepted the Terms of Service before publishing a Build Scan®.
97
87
- `issue_comment`: to check if any new pull-request comment is accepting the Terms of Service.
88
+
These event allows access to the repository secrets (_Develocity Access Key_) which is required to publish a Build Scan® to Gradle Enterprise when authentication is enabled.
98
89
99
90
**Permissions**:
100
91
@@ -106,8 +97,11 @@ The following permissions are required for this action to operate:
| `pr-comment-tos-acceptance-missing` | *Optional*: pull-request comment added when Terms of Service have not previously been accepted | `Please accept [Develocity Terms Of Service]({0}) to get your pull-request Build Scan published by commenting this pull-request with the following message:` |
@@ -120,16 +114,19 @@ The following permissions are required for this action to operate:
120
114
121
115
_Note:_
122
116
Some parameters need to be adjusted here:
123
-
- The pull-request number (here `steps.load.outputs.pr-number`) has to be adjusted to the value set in the context
117
+
- The build workflow filename (here `build.yml`) has to be adjusted to the filename of the workflow using `maven-build-scan/save`
118
+
- The location of the Develocity Terms of Service (here `https://foo.bar/tos.html`)
119
+
- The Develocity URL (here `https://<MY_DEVELOCITY_URL>`)
120
+
- The secret name holding the Develocity access key (here `<DEVELOCITY_ACCESS_KEY>`)
@@ -181,14 +178,14 @@ This action should be configured to respond to the following event trigger (see
181
178
- `workflow_run`: to run after the pull-request workflow.
182
179
- `issue_comment`: to run after the pull-request is commented.
183
180
184
-
The action fails for any other event trigger, or if the comment is different than `recheck` or `I have read Develocity Terms Of Service and I hereby accept the Terms` (can be overridden).
181
+
The action fails for any other event trigger, or if the comment is different than `recheck` or `I have read Develocity Terms Of Service and I hereby accept the Terms` (can be overridden).
| `build-workflow-filename` | Filename of the workflow using `maven-build-scan/save` (called upon pull-request submission) | |
191
-
| `pr-comment-tos-acceptance-request` | *Optional*: pull-request comment to accept the Terms of Service | `I have read Develocity Terms Of Service and I hereby accept the Terms` |
| `build-workflow-filename` | Filename of the workflow using `maven-build-scan/save` (called upon pull-request submission) | |
188
+
| `pr-comment-tos-acceptance-request` | pull-request comment to accept the Terms of Service | |
192
189
193
190
**Action outputs**:
194
191
@@ -212,6 +209,62 @@ Some parameters need to be adjusted here:
212
209
[...]
213
210
```
214
211
212
+
#### terms-of-service-acceptance/run
213
+
214
+
A composite action to verify that Develocity Terms of Service have been accepted.
215
+
216
+
This action checks if the user submitting a pull-request has accepted the Terms of Service.
217
+
If the user has previously accepted the terms, then the action succeeds.
218
+
If not, a comment is made on the pull-request asking the user to accept and the action fails. The user can then accept the Terms of Service by responding with a specific comment on the pull-request.
219
+
220
+
See the [cla-assistant-lite documentation](https://github.com/marketplace/actions/cla-assistant-lite) for more details.
description: 'Filename of the workflow where the maven-build-scan/save action was triggered'
7
+
required: true
8
+
develocity-url:
9
+
description: 'Develocity URL'
10
+
required: true
11
+
develocity-access-key:
12
+
description: 'Develocity access key'
13
+
required: false
14
+
tos-location:
15
+
description: 'Terms of Service location as an URL (https://foo.com/tos.html) or a Github repository file (/<owner>/<repo>/blob/<branch>/tos.html)'
16
+
required: true
17
+
develocity-allow-untrusted:
18
+
description: 'Develocity allow-untrusted flag'
19
+
default: 'false'
20
+
pr-comment-tos-acceptance-missing:
21
+
description: 'pull-request comment added when Terms of Service are not accepted ({0} in the value will be replaced by tos-location input)'
22
+
default: 'Please accept [Develocity Terms of Service]({0}) to get your pull-request Build Scan published by commenting this pull-request with the following message:'
23
+
pr-comment-tos-acceptance-request:
24
+
description: 'pull-request comment to accept the Terms of Service'
25
+
default: 'I have read Develocity Terms of Service and I hereby accept the Terms'
26
+
pr-comment-tos-acceptance-validation:
27
+
description: 'pull-request comment added when Terms of Service are accepted'
28
+
default: 'All Contributors have accepted Develocity Terms of Service.'
29
+
signature-branch:
30
+
description: 'Git branch where the signature file will be stored'
0 commit comments