-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgithub-action.yml
More file actions
44 lines (37 loc) · 1.26 KB
/
github-action.yml
File metadata and controls
44 lines (37 loc) · 1.26 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
# ShieldScan — GitHub Actions Integration
#
# Add this to your project at .github/workflows/security.yml
# to run ShieldScan on every push and pull request.
name: Security Scan
on:
push:
branches: [main, master, develop]
pull_request:
branches: [main, master]
jobs:
shield-scan:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run ShieldScan
run: |
curl -fsSL https://raw.githubusercontent.com/Layton2617/shield-scan/main/scan.sh -o /tmp/shield-scan.sh
chmod +x /tmp/shield-scan.sh
/tmp/shield-scan.sh . --quiet
# Optional: run with JSON output and upload as artifact
shield-scan-report:
runs-on: ubuntu-latest
if: github.event_name == 'pull_request'
steps:
- uses: actions/checkout@v4
- name: Run ShieldScan (JSON report)
run: |
curl -fsSL https://raw.githubusercontent.com/Layton2617/shield-scan/main/scan.sh -o /tmp/shield-scan.sh
chmod +x /tmp/shield-scan.sh
/tmp/shield-scan.sh . --json > shield-scan-report.json || true
- name: Upload Security Report
uses: actions/upload-artifact@v4
with:
name: shield-scan-report
path: shield-scan-report.json
retention-days: 30