Add initial linting and security checks
YAML Lint / yamllint (push) Failing after 11s
YAML Lint / gitleaks (push) Successful in 3s

Introduces CI workflows for YAML linting and secret detection,
and adds basic configuration for both tools. Also adds a
sample connectivity test playbook.
This commit is contained in:
2026-05-03 09:49:18 +03:00
parent bac193c8d8
commit 3049d8cb9a
4 changed files with 48 additions and 0 deletions
@@ -0,0 +1,23 @@
---
name: YAML Lint
on: [push]
jobs:
yamllint:
runs-on: ubuntu-yamllint
steps:
- name: Checkout linting
uses: actions/checkout@v4
- name: Run yamllint with auto-detected config
run: yamllint -c .yamllint .
gitleaks:
runs-on: ubuntu-yamllint
steps:
- name: Checkout passwords leaks
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Run gitleaks
run: gitleaks detect --source .
...
+7
View File
@@ -0,0 +1,7 @@
[extend]
useDefault = true
[allowlist]
paths = [
'''roles/logs_settings_on_ptaf/templates/filebeat.yml.j2''',
]
+11
View File
@@ -0,0 +1,11 @@
---
extends: default
ignore: |
roles/filebeat_install/files/fields.yml
.gitea/workflows/yamllint.yml
rules:
line-length:
max: 180
...
+7
View File
@@ -0,0 +1,7 @@
---
- name: Test connectivity to localhost
hosts: localhost
gather_facts: false
tasks:
- name: Ping localhost
ansible.builtin.ping: