-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (43 loc) · 1.13 KB
/
audit.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: Audit
permissions:
actions: read
contents: read
on:
pull_request:
branches:
- '**'
workflow_run:
workflows: ["Build"]
types:
- completed
jobs:
audit:
runs-on: ubuntu-latest
defaults:
run:
working-directory: processor
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20.9.0'
# - name: Run npm audit
# run: npm audit
- name: Download code coverage results
uses: actions/download-artifact@v4
with:
name: code-coverage-report
github-token: ${{ github.token }}
run-id: ${{ github.event.workflow_run.id }}
- name: SonarQube Scan
uses: sonarsource/sonarqube-scan-action@master
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
- name: SonarQube Quality Gate
uses: sonarsource/sonarqube-quality-gate-action@master
timeout-minutes: 5
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}