-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (41 loc) · 1.11 KB
/
Copy pathci.yml
File metadata and controls
47 lines (41 loc) · 1.11 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
name: CI
on:
push:
branches: [master]
pull_request:
branches: [master]
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
jobs:
lint-shell:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: ShellCheck
uses: ludeeus/action-shellcheck@master
with:
scandir: './scripts'
severity: error
lint-xml:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Validate XML
run: |
sudo apt-get install -y libxml2-utils
find . -name "*.xml" -not -path "*/.repo/*" -exec xmllint --noout {} \; 2>&1 | grep -v "validates\|warning" || true
validate-manifest:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Validate repo manifest format
run: |
find . -name "*.xml" -path "*manifest*" -not -path "*/.repo/*" | while read -r f; do
echo "Validating: $f"
xmllint --noout "$f" 2>&1
done
security-audit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: gitleaks/gitleaks-action@v2