-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (32 loc) · 985 Bytes
/
Copy pathci.yml
File metadata and controls
40 lines (32 loc) · 985 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
name: CI
on:
push:
branches: [main, master]
pull_request:
jobs:
shell:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- name: Install ShellCheck
run: sudo apt-get update && sudo apt-get install -y shellcheck
- name: Syntax check (bash -n)
run: ./tests/syntax-check.sh
- name: ShellCheck
run: |
shellcheck -x harden.sh \
lib/*.sh \
modules/*.sh \
scripts/*.sh \
tests/*.sh \
templates/monitoring/security-report.sh
- name: Safe config unit tests
run: ./tests/safe-config-test.sh
- name: Dry-run smoke (no state pollution)
run: ./tests/dry-run-smoke.sh
- name: CLI help / version / list-modules
run: |
./harden.sh --help >/dev/null
./harden.sh --version
./harden.sh --list-modules >/dev/null
./harden.sh --dry-run --profile web --show-plan >/dev/null