-
Notifications
You must be signed in to change notification settings - Fork 195
40 lines (35 loc) · 1 KB
/
devsecops-main.yml
File metadata and controls
40 lines (35 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
name: DevSecOps Main Pipeline
on:
push:
branches: [ main, devsecops, k8s ]
paths-ignore:
- '**.md'
- '.gitignore'
- 'LICENSE'
- 'screenshots/**'
- 'scripts/**'
permissions:
id-token: write
contents: read
security-events: write
jobs:
# ============================================================
# STAGE 1: CI - Security Scanning (SAST + SCA)
# ============================================================
ci:
uses: ./.github/workflows/ci.yml
secrets: inherit
# ============================================================
# STAGE 2: Build - Maven + Trivy + ECR Push
# ============================================================
build:
needs: ci
uses: ./.github/workflows/build.yml
secrets: inherit
# ============================================================
# STAGE 3: CD - Deploy + DAST
# ============================================================
cd:
needs: build
uses: ./.github/workflows/cd.yml
secrets: inherit