Skip to content

Commit

Permalink
Use a placeholder for the action version in README
Browse files Browse the repository at this point in the history
  • Loading branch information
henryju committed May 23, 2024
1 parent 44de84c commit 86fe817
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
# Disabling shallow clones is recommended for improving the relevancy of reporting
fetch-depth: 0
- name: SonarQube Scan
uses: sonarsource/sonarqube-scan-action@v2.0.2
uses: sonarsource/sonarqube-scan-action@<action version> # Ex: v2.1.0, See the latest version at https://github.com/marketplace/actions/official-sonarqube-scan
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
Expand All @@ -61,7 +61,7 @@ If your source code file names contain special characters that are not covered b

```yaml
- name: SonarQube Scan
uses: sonarsource/sonarqube-scan-action@v2.0.2
uses: sonarsource/sonarqube-scan-action@<action version> # Ex: v2.1.0, See the latest version at https://github.com/marketplace/actions/official-sonarqube-scan
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
Expand All @@ -72,7 +72,7 @@ If your SonarQube server uses a self-signed certificate, you can pass a root cer

```yaml
- name: SonarQube Scan
uses: sonarsource/sonarqube-scan-action@v2.0.2
uses: sonarsource/sonarqube-scan-action@<action version> # Ex: v2.1.0, See the latest version at https://github.com/marketplace/actions/official-sonarqube-scan
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
Expand All @@ -83,7 +83,7 @@ You can change the analysis base directory by using the optional input `projectB

```yaml
- name: SonarQube Scan
uses: sonarsource/sonarqube-scan-action@v2.0.2
uses: sonarsource/sonarqube-scan-action@<action version> # Ex: v2.1.0, See the latest version at https://github.com/marketplace/actions/official-sonarqube-scan
with:
projectBaseDir: app/src
```
Expand All @@ -92,7 +92,7 @@ In case you need to add additional analysis parameters, and you do not wish to s

```yaml
- name: SonarQube Scan
uses: sonarsource/sonarqube-scan-action@v2.0.2
uses: sonarsource/sonarqube-scan-action@<action version> # Ex: v2.1.0, See the latest version at https://github.com/marketplace/actions/official-sonarqube-scan
with:
projectBaseDir: app/src
args: >
Expand Down

0 comments on commit 86fe817

Please sign in to comment.