Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
*.h text eol=lf
*.md text eol=lf
*.json text eol=lf
*.toml text eol=lf
*.yml text eol=lf
*.yaml text eol=lf
*.txt text eol=lf
Expand Down
36 changes: 36 additions & 0 deletions .github/workflows/repo-sentinel.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Repo Sentinel

on:
push:
pull_request:
workflow_dispatch:

permissions:
contents: read

jobs:
repo-sentinel:
name: Repo Sentinel
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

- name: Set up Python
uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0
with:
python-version: "3.14"

- name: Install repo-sentinel-lite
run: |
python -m venv "$RUNNER_TEMP/repo-sentinel-venv"
"$RUNNER_TEMP/repo-sentinel-venv/bin/python" -m pip install --upgrade pip
"$RUNNER_TEMP/repo-sentinel-venv/bin/python" -m pip install repo-sentinel-lite

- name: Run repository hygiene gate
run: |
"$RUNNER_TEMP/repo-sentinel-venv/bin/repo-sentinel" scan \
--fail-on-severity error \
--format text \
.
22 changes: 22 additions & 0 deletions .reposentinel.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# LogLens uses repo-sentinel-lite as a narrow hygiene gate:
# required repository files plus accidental sensitive filenames.
#
# High-entropy content scanning is intentionally disabled here so fixture logs
# and C++ build outputs do not affect this gate.
max_text_file_size = 0
entropy_threshold = 999.0

ignore_globs = [
"build/**",
"build_manual*",
"out/**",
"report.md",
"report.json",
"*.exe",
"CMakeFiles",
"CMakeFiles/**",
"CMakeCache.txt",
"cmake_install.cmake",
"compile_commands.json",
"*.vcxproj.user",
]
Loading