Skip to content

Migrate to hk and scan commits with Gitleaks - #2205

Merged
9renpoto merged 1 commit into
mainfrom
ci/hk-gitleaks
Nov 27, 2026
Merged

9renpoto merged 1 commit into
mainfrom
ci/hk-gitleaks

Conversation

@9renpoto

Copy link
Copy Markdown
Member

Summary

  • Replace the Lefthook configuration with an hk pre-commit hook that uses each developer's hk configuration and stages fixes.
  • Remove the unused Secretlint configuration.
  • Scan commits introduced by pull requests and pushes to main in a digest-pinned Gitleaks job container.

Local setup

In clones that used Lefthook, run lefthook uninstall and then hk install. Shared local checks such as Biome are loaded from the user-level hk configuration.

Validation

  • Ran the installed Git pre-commit hook, hk validate --deny-warnings, actionlint, and offline zizmor.
  • Verified locally that the job container passes clean commits and detects a synthetic token that was removed in a subsequent commit.
日本語

Lefthook を hk に移行し、未使用の Secretlint 設定を削除します。ローカルの Biome などはユーザー共通の hk 設定から読み込みます。Lefthook を使っていたクローンでは lefthook uninstall、続けて hk install を実行します。

CI では Gitleaks の公式ジョブコンテナを使い、PR と main への push で追加されたコミットを検査します。ローカルで Git フックとワークフローの静的検査を実施し、コンテナで正常なコミットの通過と模擬トークンの検出を確認しました。

@9renpoto 9renpoto self-assigned this Nov 27, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-27T12:50:13.628760Z c589b97 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@9renpoto
9renpoto merged commit 16e3227 into main Nov 27, 2026
11 checks passed
@9renpoto
9renpoto deleted the ci/hk-gitleaks branch November 27, 2026 12:51
@github-actions

Copy link
Copy Markdown
Contributor

Code Metrics Report

main (4b0448e) #2205 (19b6166) +/-
Coverage 97.0% 97.0% 0.0%
Test Execution Time 1s 1s 0s
Details
  |                     | main (4b0448e) | #2205 (19b6166) | +/-  |
  |---------------------|----------------|-----------------|------|
  | Coverage            |          97.0% |           97.0% | 0.0% |
  |   Files             |             22 |              22 |    0 |
  |   Lines             |            600 |             600 |    0 |
  |   Covered           |            582 |             582 |    0 |
  | Test Execution Time |             1s |              1s |   0s |

Reported by octocov

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant