51 lines
1.8 KiB
YAML
51 lines
1.8 KiB
YAML
name: ci-static
|
|
|
|
# Statische CI ohne Serverzugang (GNAI-001 Meilenstein 5, erster Schritt):
|
|
# Secret-Scan, YAML-Lint, Ansible-Syntax-Check aller Projekte, Markdown-Links.
|
|
# Images sind per Digest gepinnt; Runner siehe proxmox/lxc/ct-116-runner.
|
|
on:
|
|
push:
|
|
pull_request:
|
|
branches: [main]
|
|
|
|
jobs:
|
|
secret-scan:
|
|
runs-on: [ubuntu-latest]
|
|
container:
|
|
image: python:3.13-bookworm@sha256:cc55e4ded9c95f6ce2133b3d096db43f214d280c2a8af65d83e246c8fa7d168c
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Secret-Scan (Private Keys, AWS-Keys, WG-PSK-Muster)
|
|
run: python3 scripts/ci/secret_scan.py
|
|
|
|
yamllint:
|
|
runs-on: [ubuntu-latest]
|
|
container:
|
|
image: python:3.13-bookworm@sha256:cc55e4ded9c95f6ce2133b3d096db43f214d280c2a8af65d83e246c8fa7d168c
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: yamllint installieren (gepinnt)
|
|
run: pip install --no-cache-dir -r ci/requirements-ci.txt
|
|
- name: YAML-Lint
|
|
run: yamllint -c .yamllint $(git ls-files '*.yml' '*.yaml' | grep -v -E '^\.venv/|\.ansible/')
|
|
|
|
ansible-syntax:
|
|
runs-on: [ubuntu-latest]
|
|
container:
|
|
image: python:3.13-bookworm@sha256:cc55e4ded9c95f6ce2133b3d096db43f214d280c2a8af65d83e246c8fa7d168c
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: ansible-core installieren (gepinnt wie Control-Node)
|
|
run: pip install --no-cache-dir -r shared/ansible/requirements-control.txt
|
|
- name: Syntax-Check aller Ansible-Projekte
|
|
run: bash scripts/ci/check_ansible_syntax.sh
|
|
|
|
markdown-links:
|
|
runs-on: [ubuntu-latest]
|
|
container:
|
|
image: python:3.13-bookworm@sha256:cc55e4ded9c95f6ce2133b3d096db43f214d280c2a8af65d83e246c8fa7d168c
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Relative Markdown-Links pruefen
|
|
run: python3 scripts/ci/check_links.py
|