59 lines
2.4 KiB
YAML
59 lines
2.4 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.
|
|
# Job-Image node:22-trixie (Debian 13, python3.13) (actions/checkout ist ein Node-Action) per Digest
|
|
# gepinnt; python3 wird pro Job nachinstalliert. Runner: CT 116 (ci-static-01).
|
|
on:
|
|
push:
|
|
pull_request:
|
|
branches: [main]
|
|
|
|
env:
|
|
DEBIAN_FRONTEND: noninteractive
|
|
|
|
jobs:
|
|
secret-scan:
|
|
runs-on: [ubuntu-latest]
|
|
container:
|
|
image: node:22-trixie@sha256:c46850e69b4fab3c4f225aa36b777c8cc001d1cd5b2136e1ea024796f6d3bbbb
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: python3 installieren
|
|
run: apt-get update -qq && apt-get install -y -qq python3 >/dev/null
|
|
- name: Secret-Scan (Private Keys, AWS-Keys, WG-PSK-Muster)
|
|
run: python3 scripts/ci/secret_scan.py
|
|
|
|
yamllint:
|
|
runs-on: [ubuntu-latest]
|
|
container:
|
|
image: node:22-trixie@sha256:c46850e69b4fab3c4f225aa36b777c8cc001d1cd5b2136e1ea024796f6d3bbbb
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: python3 + pip installieren, CI-Tools gepinnt
|
|
run: apt-get update -qq && apt-get install -y -qq python3 python3-pip >/dev/null && pip install --no-cache-dir --break-system-packages -r ci/requirements-ci.txt
|
|
- name: YAML-Lint
|
|
run: yamllint -c .yamllint $(git ls-files -z '*.yml' '*.yaml' | tr '\0' '\n' | grep -v -E '^\.venv/|\.ansible/')
|
|
|
|
ansible-syntax:
|
|
runs-on: [ubuntu-latest]
|
|
container:
|
|
image: node:22-trixie@sha256:c46850e69b4fab3c4f225aa36b777c8cc001d1cd5b2136e1ea024796f6d3bbbb
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: python3 + pip installieren, ansible-core gepinnt (wie Control-Node)
|
|
run: apt-get update -qq && apt-get install -y -qq python3 python3-pip >/dev/null && pip install --no-cache-dir --break-system-packages -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: node:22-trixie@sha256:c46850e69b4fab3c4f225aa36b777c8cc001d1cd5b2136e1ea024796f6d3bbbb
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: python3 installieren
|
|
run: apt-get update -qq && apt-get install -y -qq python3 >/dev/null
|
|
- name: Relative Markdown-Links pruefen
|
|
run: python3 scripts/ci/check_links.py
|