Skip to content

Commit 73be7c9

Browse files
committed
Updating repolinter pipeline to require Oracle disclaimer
1 parent a0c3570 commit 73be7c9

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

.github/workflows/repolinter.yml

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
name: Repolinter
22
on:
33
pull_request_target:
4-
54
jobs:
65
run_repolinter:
76
name: Run Repolinter on pull request
@@ -25,14 +24,27 @@ jobs:
2524
echo $(cat repolinter_results.json)
2625
exit 0
2726
- name: Analyze the Repolinter results
28-
uses: oracle-devrel/[email protected]alpha1
27+
uses: oracle-devrel/[email protected]alpha2
2928
id: analysis
3029
with:
3130
json_results_file: '/github/workspace/repolinter_results.json'
3231
- name: Overall analysis results
3332
run: |
3433
echo "Passed: ${{ steps.analysis.outputs.passed }}"
3534
echo "Errored: ${{ steps.analysis.outputs.errored }}"
35+
- name: Comment if analysis finds missing disclaimer
36+
if: steps.analysis.outputs.disclaimer_found == 'false'
37+
uses: mshick/add-pr-comment@v1
38+
with:
39+
message: |
40+
:no_entry: **FAILURE: Missing Disclaimer**
41+
The standard Oracle Disclaimer seems to be missing from the readme. Please add it:
42+
43+
ORACLE AND ITS AFFILIATES DO NOT PROVIDE ANY WARRANTY WHATSOEVER, EXPRESS OR IMPLIED, FOR ANY SOFTWARE, MATERIAL OR CONTENT OF ANY KIND CONTAINED OR PRODUCED WITHIN THIS REPOSITORY, AND IN PARTICULAR SPECIFICALLY DISCLAIM ANY AND ALL IMPLIED WARRANTIES OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE. FURTHERMORE, ORACLE AND ITS AFFILIATES DO NOT REPRESENT THAT ANY CUSTOMARY SECURITY REVIEW HAS BEEN PERFORMED WITH RESPECT TO ANY SOFTWARE, MATERIAL OR CONTENT CONTAINED OR PRODUCED WITHIN THIS REPOSITORY. IN ADDITION, AND WITHOUT LIMITING THE FOREGOING, THIRD PARTIES MAY HAVE POSTED SOFTWARE, MATERIAL OR CONTENT TO THIS REPOSITORY WITHOUT ANY REVIEW. USE AT YOUR OWN RISK.
44+
45+
Details:
46+
${{ steps.analysis.outputs.disclaimer_details }}
47+
repo-token: ${{ secrets.GITHUB_TOKEN }}
3648
- name: Comment if analysis finds missing readme
3749
if: steps.analysis.outputs.readme_file_found == 'false'
3850
uses: mshick/add-pr-comment@v1
@@ -72,4 +84,6 @@ jobs:
7284
- name: Halt pipeline if LICENSE is missing
7385
if: steps.analysis.outputs.license_file_found == 'false'
7486
run: exit 1
75-
87+
- name: Halt pipeline if disclaimer is missing
88+
if: steps.analysis.outputs.disclaimer_found == 'false'
89+
run: exit 1

0 commit comments

Comments
 (0)