-
-
Notifications
You must be signed in to change notification settings - Fork 10
76 lines (61 loc) · 1.72 KB
/
Copy pathdogfood.yml
File metadata and controls
76 lines (61 loc) · 1.72 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
name: QWED Verification Example
on:
workflow_dispatch: # Manual trigger
push:
branches: [ main ]
pull_request:
branches: [ main ]
permissions:
contents: read
jobs:
scan-secrets:
name: 🔐 Scan for Leaked Secrets
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Scan for API keys and tokens
uses: ./ # Use local action
with:
action: scan-secrets
paths: "**/*.env,**/*.json,**/*.yaml,**/*.yml"
fail_on_findings: "false" # Don't fail demo workflow
scan-code:
name: 🛡️ Scan Code for Security Issues
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Scan Python files for dangerous patterns
uses: ./
with:
action: scan-code
paths: "**/*.py"
output_format: text
fail_on_findings: "false"
verify-shell:
name: 💻 Verify Shell Scripts
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Check shell scripts for RCE patterns
uses: ./
with:
action: verify-shell
paths: "**/*.sh"
fail_on_findings: "false"
sarif-demo:
name: 📊 SARIF Output Demo
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Scan with SARIF output
uses: ./
with:
action: scan-code
paths: "**/*.py"
output_format: sarif
fail_on_findings: "false"
# Upload SARIF to GitHub Security tab (optional)
# - name: Upload SARIF
# uses: github/codeql-action/upload-sarif@v2
# with:
# sarif_file: qwed-results.sarif