File tree 3 files changed +16895
-344
lines changed
3 files changed +16895
-344
lines changed Original file line number Diff line number Diff line change
1
+ name : PR-checks
2
+
3
+ on :
4
+ push :
5
+ branches : ['develop']
6
+ pull_request :
7
+ branches : ['develop']
8
+
9
+ jobs :
10
+ scanner :
11
+ permissions :
12
+ id-token : write
13
+ contents : write
14
+ pull-requests : write
15
+ runs-on : X64
16
+ steps :
17
+ - uses : actions/checkout@v3
18
+ - uses : actions/setup-node@v4
19
+ with :
20
+ node-version-file : ' .nvmrc'
21
+ - uses : aws-actions/configure-aws-credentials@v4
22
+ with :
23
+ role-to-assume : ${{ secrets.CVS_MGMT_AWS_ROLE }}
24
+ aws-region : ${{ secrets.DVSA_AWS_REGION }}
25
+ role-session-name : ' cvs-tsk-transform-tech-records'
26
+ - uses : aws-actions/aws-secretsmanager-get-secrets@v1
27
+ with :
28
+ secret-ids : sonarqube-gha
29
+ parse-json-secrets : true
30
+ - name : Install dependencies
31
+ run : npm ci
32
+ - name : Run SonarQube scanner
33
+ run : |
34
+ npm run test && \
35
+ npm run sonar-scanner -- \
36
+ -Dsonar.host.url=${{ env.SONARQUBE_GHA_URL }} \
37
+ -Dsonar.token=${{ env.SONARQUBE_GHA_TOKEN }} \
38
+ -Dsonar.login=${{ env.SONARQUBE_GHA_TOKEN }} \
39
+ -Dsonar.projectName=${{ github.repository }} \
40
+ -Dsonar.projectVersion=1.0.${{ github.run_id }}
You can’t perform that action at this time.
0 commit comments