Skip to content

Commit

Permalink
Update dependencies (#17)
Browse files Browse the repository at this point in the history
* Set sonar-scanner 4.6.2.2472 and added full example to readme

* Add projectKey to secrets and update ci example

* Rename sonarqube job

* Fix CI action

* Update nodejs version to 16

* Update libs

* Added organization key to secrets

* Build using updated libs

* Update Example
  • Loading branch information
diegofcornejo authored Jul 17, 2023
1 parent 37dafb0 commit e69b876
Show file tree
Hide file tree
Showing 6 changed files with 2,252 additions and 673 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,17 @@ on:
jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- name: Setup sonarqube
- uses: actions/checkout@master
with:
fetch-depth: 0
- name: Setup SonarQube
uses: ./
- name: run sonarqube
- name: Sonar Scan
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: sonar-scanner
-Dsonar.host.url=${{ secrets.SONAR_URL }}
-Dsonar.login=${{ secrets.SONAR_TOKEN }}
-Dsonar.organization=1corp
-Dsonar.host.url=https://sonarcloud.io/
-Dsonar.projectKey=sonar-scanner-action
-Dsonar.organization=${{ secrets.SONAR_ORGANIZATION }}
-Dsonar.projectKey=${{ secrets.SONAR_PROJECT_KEY }}
23 changes: 12 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,26 +6,27 @@ This action downloads given version of sonar-scanner and adds it to PATH.

### `version`

**Required** sonar-scanner cli version. List of available versions: https://github.com/SonarSource/sonar-scanner-cli/releases. Default `4.6.2.2472`.
**Required** sonar-scanner cli version. List of available versions: https://github.com/SonarSource/sonar-scanner-cli/releases. Default `4.8.0.2856`.

## Full Example usage

```yaml
on: push
name: SonarQube
name: SonarQube Workflow
jobs:
sonarQubeTrigger:
name: SonarQube Trigger
sonarqube:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Setup sonarqube
uses: warchant/setup-sonar-scanner@v3
- name: Run sonarqube
with:
fetch-depth: 0
- name: Setup SonarQube
uses: warchant/setup-sonar-scanner@v5
- name: SonarQube Scan
run: sonar-scanner
-Dsonar.organization=1corp
-Dsonar.projectKey=Claro-Club-Mobile
-Dsonar.sources=$GITHUB_WORKSPACE
-Dsonar.host.url=${{ secrets.SONAR_URL }}
-Dsonar.host.url=${{ secrets.SONAR_URL }}
-Dsonar.login=${{ secrets.SONAR_TOKEN }}
-Dsonar.organization=${{ secrets.SONAR_ORGANIZATION }}
-Dsonar.projectKey=${{ secrets.SONAR_PROJECT_KEY }}
-Dsonar.sources=$GITHUB_WORKSPACE
```
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ inputs:
description: 'Sonar-scanner version'
required: true
# https://github.com/SonarSource/sonar-scanner-cli/releases
default: '4.6.2.2472'
default: '4.8.0.2856'
branding:
icon: 'check'
color: 'gray-dark'
Expand Down
Loading

0 comments on commit e69b876

Please sign in to comment.