forked from alejolagosm/machine_flow
-
Notifications
You must be signed in to change notification settings - Fork 1
97 lines (82 loc) · 2.43 KB
/
dev.yml
File metadata and controls
97 lines (82 loc) · 2.43 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
# Test workflow for machine
name: Security Scans
on:
pull_request:
pull_request_target:
types: [opened, synchronize, reopened]
jobs:
sast:
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
permissions:
security-events: write
steps:
- uses: actions/checkout@v4
- uses: fluidattacks/sast-action@main
id: scan
with:
scan_config_path: .github/.fluidattacks.yaml
scanner_mode: full
- name: Upload results to GitHub Security tab
if: always()
uses: github/codeql-action/upload-sarif@v4
with:
sarif_file: ${{ steps.scan.outputs.sarif_file }}
- name: Fail if vulnerabilities found
if: steps.scan.outputs.vulnerabilities_found == 'true'
run: exit 1
sca-scan:
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
permissions:
security-events: write
steps:
- uses: actions/checkout@v4
- uses: fluidattacks/sca-action@main
id: scan
with:
scanner_mode: full
- name: Upload results to GitHub Security tab
if: always()
uses: github/codeql-action/upload-sarif@v4
with:
sarif_file: ${{ steps.scan.outputs.sarif_file }}
- name: Fail if vulnerabilities found
if: steps.scan.outputs.vulnerabilities_found == 'true'
run: exit 1
dast-scan:
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
permissions:
security-events: write
steps:
- uses: actions/checkout@v4
- uses: fluidattacks/dast-action@main
id: scan
- name: Fail if vulnerabilities found
if: steps.scan.outputs.vulnerabilities_found == 'true'
run: exit 1
secret-scan:
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
permissions:
security-events: write
steps:
- uses: actions/checkout@v4
- uses: fluidattacks/secret-scan-action@main
id: scan
with:
scanner_mode: full
- name: Upload results to GitHub Security tab
if: always()
uses: github/codeql-action/upload-sarif@v4
with:
sarif_file: ${{ steps.scan.outputs.sarif_file }}
ci-gate:
if: github.event_name == 'pull_request_target'
runs-on: ubuntu-latest
steps:
- uses: fluidattacks/ci-gate-action@main
with:
api_token: ${{ secrets.FA_API_TOKEN }}
strict: true