Skip to content

Commit 3cef3a5

Browse files
authored
Bug: sonarcloud version and mangled multiline strings (#5)
1 parent e24cb46 commit 3cef3a5

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.github/workflows/unit-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
npm run test:cov
3636
dir: ${{ matrix.dir }}
3737
repository: bcgov/nr-quickstart-typescript
38-
sonar_args: |
38+
sonar_args: >
3939
-Dsonar.exclusions=**/coverage/**,**/node_modules/**
4040
-Dsonar.organization=bcgov-nr
4141
-Dsonar.projectKey=bcgov-nr_action-test-and-analyse_${{ matrix.dir }}

action.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,25 +75,25 @@ runs:
7575
# If sonar_project_token and sonar_comment_token, then run with comments
7676
- name: SonarCloud Scan
7777
if: inputs.sonar_project_token && inputs.sonar_comment_token
78-
uses: SonarSource/sonarcloud-github-action@master
78+
uses: SonarSource/sonarcloud-github-action@v1.7
7979
env:
8080
GITHUB_TOKEN: ${{ inputs.sonar_comment_token }}
8181
SONAR_TOKEN: ${{ inputs.sonar_project_token }}
8282
with:
8383
projectBaseDir: ${{ inputs.dir }}
84-
args:
84+
args: >
8585
-Dsonar.pullrequest.github.summary_comment=true -Dsonar.project.monorepo.enabled=true
8686
${{ inputs.sonar_args }}
8787
8888
# If sonar_project_token and not sonar_comment_token, then run without comments
8989
- name: SonarCloud Scan
9090
if: inputs.sonar_project_token && ! inputs.sonar_comment_token
91-
uses: SonarSource/sonarcloud-github-action@master
91+
uses: SonarSource/sonarcloud-github-action@v1.7
9292
env:
9393
SONAR_TOKEN: ${{ inputs.sonar_project_token }}
9494
with:
9595
projectBaseDir: ${{ inputs.dir }}
96-
args:
96+
args: >
9797
-Dsonar.pullrequest.github.summary_comment=false -Dsonar.project.monorepo.enabled=true
9898
${{ inputs.sonar_args }}
9999

0 commit comments

Comments
 (0)