Compare commits
12 Commits
v1.0.0-rc.
...
v1.0.1-dev
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
73c272d7a5 | ||
|
|
1c37e4588f | ||
|
|
545a1a5fac | ||
|
|
63ca4c2787 | ||
|
|
9bdc677f66 | ||
|
|
80213a727e | ||
|
|
5379cc65b4 | ||
|
|
accc346655 | ||
|
|
50fbee7c7b | ||
|
|
d0028cf7df | ||
|
|
5cd2fa569f | ||
|
|
7b0e7aa29e |
@@ -1,3 +1,12 @@
|
||||
---
|
||||
name: Bug report
|
||||
about: Create a report to help us improve
|
||||
title: ''
|
||||
labels: bug
|
||||
assignees: dwisiswant0
|
||||
|
||||
---
|
||||
|
||||
### Issue and Steps to Reproduce
|
||||
<!-- Describe your issue and tell us how to reproduce it (include any useful information). -->
|
||||
|
||||
@@ -13,4 +22,4 @@
|
||||
|
||||
- Version:
|
||||
- Platform:
|
||||
- Subsystem:
|
||||
- Subsystem:
|
||||
@@ -30,13 +30,15 @@ jobs:
|
||||
login: ${{ secrets.SONARQUBE_TOKEN }}
|
||||
```
|
||||
|
||||
You can change the analysis base directory and/ project key _(allowed characters: letters, numbers, -, _, . and :, with at least one non-digit.)_ by using the optional input like this:
|
||||
You can change the analysis base directory and/ project key _(allowed characters: letters, numbers, -, \_, . and :, with at least one non-digit.)_ by using the optional input like this:
|
||||
|
||||
```yaml
|
||||
uses: kitabisa/sonarqube-action@master
|
||||
with:
|
||||
projectBaseDir: my-custom-directory
|
||||
projectKey: my-custom-project
|
||||
projectBaseDir: "/path/to/my-custom-project"
|
||||
projectKey: "my-custom-project"
|
||||
projectName: "my-custom-project-name"
|
||||
projectVersion: "v0.0.1"
|
||||
```
|
||||
|
||||
## Secrets
|
||||
|
||||
@@ -15,6 +15,14 @@ inputs:
|
||||
description: "The project's unique key. Allowed characters are: letters, numbers, -, _, . and :, with at least one non-digit."
|
||||
required: false
|
||||
default: ""
|
||||
projectName:
|
||||
description: "Name of the project that will be displayed on the web interface."
|
||||
required: false
|
||||
default: ""
|
||||
projectVersion:
|
||||
description: "The project version."
|
||||
required: false
|
||||
default: ""
|
||||
projectBaseDir:
|
||||
description: "Set the sonar.projectBaseDir analysis property"
|
||||
required: false
|
||||
|
||||
@@ -11,15 +11,18 @@ if [[ "${GITHUB_EVENT_NAME}" == "pull_request" ]]; then
|
||||
fi
|
||||
|
||||
[[ ! -z ${INPUT_PASSWORD} ]] && SONAR_PASSWORD="${INPUT_PASSWORD}" || SONAR_PASSWORD=""
|
||||
[[ -z ${INPUT_PROJECTKEY} ]] && SONAR_PROJECTKEY="${PWD##*/}" || SONAR_PROJECTKEY="${INPUT_PROJECTKEY}"
|
||||
[[ ! -z ${INPUT_PROJECTKEY} ]] && SONAR_PROJECTKEY="${INPUT_PROJECTKEY}" || SONAR_PROJECTKEY=""
|
||||
[[ ! -z ${INPUT_PROJECTNAME} ]] && SONAR_PROJECTNAME="${INPUT_PROJECTNAME}" || SONAR_PROJECTNAME=""
|
||||
[[ ! -z ${INPUT_PROJECTVERSION} ]] && SONAR_PROJECTVERSION="${INPUT_PROJECTVERSION}" || SONAR_PROJECTVERSION=""
|
||||
|
||||
|
||||
sonar-scanner \
|
||||
-Dsonar.host.url=${INPUT_HOST} \
|
||||
-Dsonar.projectKey=${SONAR_PROJECTKEY} \
|
||||
-Dsonar.projectName=${SONAR_PROJECTNAME} \
|
||||
-Dsonar.projectVersion=${SONAR_PROJECTVERSION} \
|
||||
-Dsonar.projectBaseDir=${INPUT_PROJECTBASEDIR} \
|
||||
-Dsonar.login=${INPUT_LOGIN} \
|
||||
-Dsonar.password=${INPUT_PASSWORD} \
|
||||
-Dsonar.sources=. \
|
||||
-Dsonar.sourceEncoding=UTF-8 \
|
||||
${SONAR_PASSWORD}
|
||||
|
||||
-Dsonar.sourceEncoding=UTF-8
|
||||
|
||||
Reference in New Issue
Block a user