Skip to content

Commit 6003947

Browse files
committed
Updating README and adding SonarCloud to workflow
1 parent d40572a commit 6003947

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed

.github/workflows/sonarcloud.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: SonarCloud Scan
2+
on:
3+
pull_request_target:
4+
jobs:
5+
sonarcloud:
6+
name: SonarCloud
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Checkout repo
10+
uses: actions/checkout@v2
11+
with:
12+
ref: ${{ github.event.pull_request.head.ref }}
13+
repository: ${{ github.event.pull_request.head.repo.full_name }}
14+
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
15+
- name: SonarCloud Scan
16+
uses: SonarSource/sonarcloud-github-action@master
17+
env:
18+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
19+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# TITLE
22

3+
[![License: UPL](https://img.shields.io/badge/license-UPL-green)](https://img.shields.io/badge/license-UPL-green) [![Quality gate](https://sonarcloud.io/api/project_badges/quality_gate?project=oracle-devrel_test)](https://sonarcloud.io/dashboard?id=oracle-devrel_test)
4+
5+
36
## Introduction
47
MISSING
58

@@ -21,6 +24,6 @@ This project is open source. Please submit your contributions by forking this r
2124
## License
2225
Copyright (c) 2021 Oracle and/or its affiliates.
2326

24-
Licensed under the Universal Permissive License 1.0.
27+
Licensed under the Universal Permissive License (UPL), Version 1.0.
2528

2629
See [LICENSE](LICENSE) for more details.

0 commit comments

Comments
 (0)