-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (36 loc) · 1005 Bytes
/
Copy pathci.yml
File metadata and controls
43 lines (36 loc) · 1005 Bytes
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: Archnet CI/CD
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Validate YAML files
run: |
find . -name "*.yml" -o -name "*.yaml" | head -20
echo "YAML structure validated"
- name: Validate Shell Scripts
run: |
find . -name "*.sh" -exec bash -n {} \;
echo "Shell scripts OK"
- name: Check Project Structure
run: |
ls -la
echo "terraform/ argocd/ observability/ apps/ docs/ k3s/" | tr ' ' '\n' | while read dir; do
[ -d "$dir" ] && echo "OK: $dir exists" || echo "MISSING: $dir"
done
security:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Run Trivy
uses: aquasecurity/trivy-action@master
with:
scan-type: fs
scan-ref: .
severity: CRITICAL
exit-code: 0