forked from magnologan/gha-devsecops
-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (45 loc) · 1.31 KB
/
devsecops.yml
File metadata and controls
47 lines (45 loc) · 1.31 KB
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
name: DevSecOps Pipeline
on: pull_request
branches: master, main
jobs:
sonarcloud:
needs: recon
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
# Disabling shallow clone is recommended for improving relevancy of reporting
fetch-depth: 0
- name: SonarCloud Scan
uses: sonarsource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
snyk:
runs-on: ubuntu-latest
needs: sonarcloud
steps:
- uses: actions/checkout@master
- name: Run Snyk to check for vulnerabilities
uses: snyk/actions/node@master # For node projects, change accordingly
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
with:
command: monitor
zap_scan:
runs-on: ubuntu-latest
name: zap
needs: snyk
steps:
- name: Checkout
uses: actions/checkout@v2
with:
ref: master
- name: ZAP Scan
uses: zaproxy/action-baseline@v0.6.1
with:
token: ${{ secrets.GITHUB_TOKEN }}
docker_name: 'owasp/zap2docker-stable'
target: 'http://test.com' # Change URL or IP of your target application
rules_file_name: '.zap/rules.tsv'
cmd_options: '-a'