-
Notifications
You must be signed in to change notification settings - Fork 136
43 lines (32 loc) · 1 KB
/
devsecops-pipeline.yml
File metadata and controls
43 lines (32 loc) · 1 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
name: DevSecOps End To End Pipeline
on:
push:
branches: [main]
jobs:
# CI (Continous Integration with Security Scanning)
code-quality:
uses: ./.github/workflows/code-quality.yml
secrets-scan:
uses: ./.github/workflows/secrets-scan.yml
secrets: inherit
dependency-scan:
uses: ./.github/workflows/dependency-scan.yml
docker-scan:
uses: ./.github/workflows/docker-lint.yml
tests:
uses: ./.github/workflows/tests.yml
# Build once the security scans and tests are complete
build:
needs: [code-quality, secrets-scan, dependency-scan, docker-scan, tests]
uses: ./.github/workflows/docker-build-push.yml
secrets: inherit
# Image scan
trivy:
needs: [build]
uses: ./.github/workflows/image-scan.yml
secrets: inherit
# CD : Deploy to Production
deploy:
needs: [trivy]
uses: ./.github/workflows/deploy-to-server.yml
secrets: inherit