From 417d6dc55c1ef8e84115c6a1e52ed7373f6ceecf Mon Sep 17 00:00:00 2001 From: xnoto Date: Fri, 31 Jul 2026 00:35:41 -0600 Subject: [PATCH] ci: add secret scanning --- .github/workflows/ci.yml | 17 +++++++++++++++++ .pre-commit-config.yaml | 17 +++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 .github/workflows/ci.yml create mode 100644 .pre-commit-config.yaml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..7e217a7 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,17 @@ +--- +name: ci + +on: + push: + branches: [main] + pull_request: + +permissions: + contents: read + +jobs: + pre-commit: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: pre-commit/action@v3.0.1 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..7329c2c --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,17 @@ +--- +repos: + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: v6.0.0 + hooks: + - id: check-added-large-files + - id: check-case-conflict + - id: check-merge-conflict + - id: detect-private-key + - id: end-of-file-fixer + - id: trailing-whitespace + - repo: https://github.com/gitleaks/gitleaks + rev: v8.30.1 + hooks: + - id: gitleaks + entry: gitleaks dir --redact --verbose . + pass_filenames: false