We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f88e4d0 commit 1eb3d0dCopy full SHA for 1eb3d0d
1 file changed
.github/workflows/sast-sonarcloud.yml
@@ -0,0 +1,34 @@
1
+name: SAST com SonarCloud
2
+
3
+on:
4
+ push:
5
+ branches: [main]
6
+ pull_request:
7
8
+jobs:
9
+ sonarcloud:
10
+ runs-on: ubuntu-latest
11
+ steps:
12
+ - name: Checkout code
13
+ uses: actions/checkout@v3
14
15
+ - name: Setup Node.js
16
+ uses: actions/setup-node@v3
17
+ with:
18
+ node-version: "16"
19
20
+ - name: Cache dependencies
21
+ uses: actions/cache@v3
22
23
+ path: ~/.npm
24
+ key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
25
26
+ - name: Install dependencies
27
+ run: npm install
28
29
+ - name: Run SonarCloud Scan
30
+ uses: SonarSource/sonarcloud-github-action@master
31
32
+ organization: ${{ secrets.SONAR_ORG }}
33
+ projectKey: ${{ secrets.SONAR_PROJECT }}
34
+ token: ${{ secrets.SONAR_TOKEN }}
0 commit comments