mirror of
https://github.com/sonarsource/sonarcloud-github-action.git
synced 2026-06-06 01:47:07 +00:00
Use a placeholder for the action version in README
This commit is contained in:
parent
d08d592c0b
commit
9c11606f13
1 changed files with 3 additions and 3 deletions
|
|
@ -48,7 +48,7 @@ jobs:
|
|||
# Disabling shallow clone is recommended for improving relevancy of reporting
|
||||
fetch-depth: 0
|
||||
- name: SonarCloud Scan
|
||||
uses: sonarsource/sonarcloud-github-action@master
|
||||
uses: sonarsource/sonarcloud-github-action@<action version> # Ex: v2.1.0, See the latest version at https://github.com/marketplace/actions/sonarcloud-scan
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
||||
|
|
@ -57,7 +57,7 @@ jobs:
|
|||
You can change the analysis base directory by using the optional input `projectBaseDir` like this:
|
||||
|
||||
```yaml
|
||||
uses: sonarsource/sonarcloud-github-action@master
|
||||
uses: sonarsource/sonarcloud-github-action@<action version> # Ex: v2.1.0, See the latest version at https://github.com/marketplace/actions/sonarcloud-scan
|
||||
with:
|
||||
projectBaseDir: my-custom-directory
|
||||
```
|
||||
|
|
@ -66,7 +66,7 @@ In case you need to add additional analysis parameters, you can use the `args` o
|
|||
|
||||
```yaml
|
||||
- name: Analyze with SonarCloud
|
||||
uses: sonarsource/sonarcloud-github-action@master
|
||||
uses: sonarsource/sonarcloud-github-action@<action version> # Ex: v2.1.0, See the latest version at https://github.com/marketplace/actions/sonarcloud-scan
|
||||
with:
|
||||
projectBaseDir: my-custom-directory
|
||||
args: >
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue