Files
playbooks/.gitea/workflows/check.yml
T
tanshu 2aab1aec1e Add secret scanning, layout checks, and a --changed mode
gitleaks runs before each commit and in CI, with known values in a redacted baseline. The layout check rejects empty readmes and main.yml role entrypoints. --changed lints only the YAML files that differ from HEAD.
2026-10-18 21:53:29 +05:30

22 lines
477 B
YAML

name: check
on:
push:
pull_request:
jobs:
check:
runs-on: ubuntu-latest
steps:
# gitleaks reads the commit history, so a shallow clone would hide it.
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install linters
run: pip install ansible-core ansible-lint yamllint
- name: Run checks
run: ./scripts/check.sh