File tree Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Build
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - main
7
+
8
+ jobs :
9
+ build :
10
+ name : Build
11
+ runs-on : ubuntu-latest
12
+ steps :
13
+ - uses : actions/checkout@v2
14
+ with :
15
+ fetch-depth : 0 # Shallow clones should be disabled for a better relevancy of analysis
16
+
17
+ - uses : sonarsource/sonarqube-scan-action@master
18
+ env :
19
+ SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
20
+ SONAR_HOST_URL : ${{ secrets.SONAR_HOST_URL }}
21
+
22
+ # If you wish to fail your job when the Quality Gate is red, uncomment the
23
+ # following lines. This would typically be used to fail a deployment.
24
+ # - uses: sonarsource/sonarqube-quality-gate-action@master
25
+ # timeout-minutes: 5
26
+ # env:
27
+ # SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
28
+
29
+ - name : Pull Blacklock Code Scanner Docker Image
30
+ run : docker pull blacklocksec/code-scanner:latest
31
+
32
+ - name : Run Blacklock Code Scanner
33
+ run : docker run --rm -v $(pwd):/app -e SONAR_PROJECTKEY="GL:SKZjPPa-3i9xH" -e SONAR_HOST_URL=${{ secrets.SONAR_HOST_URL }} -e SONAR_TOKEN=${{ secrets.SONAR_TOKEN }} blacklocksec/code-scanner:latest
You can’t perform that action at this time.
0 commit comments