Skip to content

Commit 62c33e2

Browse files
authored
Merge pull request #41 from safeinsights/update-ci
Updating CI
2 parents f24b3dd + d3cf826 commit 62c33e2

File tree

7 files changed

+1365
-2709
lines changed

7 files changed

+1365
-2709
lines changed

.github/workflows/checks.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
name: Checks
22
on:
33
push:
4-
branches: [main, master]
4+
branches: [main]
55
pull_request:
6-
branches: [main, master]
76
jobs:
87
all:
98
timeout-minutes: 60
@@ -23,6 +22,18 @@ jobs:
2322
scan-type: 'fs'
2423
scan-ref: '.'
2524
trivy-config: trivy.yaml
25+
- name: Run SonarQube SAST Scan
26+
uses: SonarSource/sonarqube-scan-action@v6
27+
env:
28+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
29+
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
30+
# If you wish to fail your job when the Quality Gate is red, uncomment the
31+
# following lines. This would typically be used to fail a deployment.
32+
- name: Check SonarQube SAST Sca
33+
uses: SonarSource/sonarqube-quality-gate-action@v1
34+
timeout-minutes: 5
35+
env:
36+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
2637
- name: Typecheck
2738
run: npm run typecheck
2839
- name: Unit Test

0 commit comments

Comments
 (0)