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
7 changes: 7 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<!-- セットアップ後の動作と、レビューしてほしい箇所を短く書いてください。 -->

## 変更内容

## 確認したこと

<!-- 設定を変えた場合は、初回と再実行の結果、既存設定への影響を記載してください。 -->
9 changes: 9 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
version: 2
updates:
- package-ecosystem: github-actions
directory: /
schedule:
interval: monthly
open-pull-requests-limit: 3
commit-message:
prefix: ci
14 changes: 14 additions & 0 deletions .github/workflows/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,20 @@ permissions:
contents: read

jobs:
secrets:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 0
persist-credentials: false
- uses: gitleaks/gitleaks-action@e0c47f4f8be36e29cdc102c57e68cb5cbf0e8d1e # v3.0.0
env:
GITHUB_TOKEN: ${{ github.token }}
GITLEAKS_ENABLE_COMMENTS: "false"
GITLEAKS_ENABLE_UPLOAD_ARTIFACT: "false"
GITLEAKS_ENABLE_SUMMARY: "false"

smoke:
runs-on: macos-15
timeout-minutes: 15
Expand Down
5 changes: 5 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# 変更を提案する

改善の提案は Issue で受け付けています。セットアップの不具合なら、macOS と mise のバージョン、実行したコマンド、期待した動作と実際の結果を添えてください。認証情報に関わる問題は[非公開の報告窓口](SECURITY.md)へお願いします。PR は書き込み権限を持つメンテナーが作成します。

PR には、新しい Mac で何が変わるか、すでに設定がある Mac では再実行するとどうなるかを書いてください。設定の変更は `./tests/smoke.sh` で一時ホームに適用して確かめられます。ツールの導入に触れた場合は `./tests/smoke.sh --with-tools` で実行時のバージョンまで確認してください。
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2026 Shota Naito

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ bwkw の Mac 用開発環境。セットアップ後は新しいターミナル

## 新しい Mac で始める

GitHub にアクセスできる端末で、次の1行を実行する。SSH 鍵を GitHub に登録済みなら、そのまま使える。
Git が使える端末では、次の1行で取得してセットアップできる。

```sh
git clone git@github.com:bwkw/dotfiles.git "$HOME/.dotfiles" && "$HOME/.dotfiles/setup.sh"
git clone https://github.com/bwkw/dotfiles.git "$HOME/.dotfiles" && "$HOME/.dotfiles/setup.sh"
```

Git や SSH 鍵をまだ設定していない場合は、GitHub の **Code → Download ZIP** から取得する。展開したフォルダをホームの `dotfiles` に移して、ターミナルで次を実行する。設定のリンク元になるので、そのフォルダを保管する。
Git がまだ使えない場合は、GitHub の **Code → Download ZIP** から取得する。展開したフォルダをホームの `dotfiles` に移して、ターミナルで次を実行する。設定のリンク元になるので、そのフォルダを保管する。

```sh
/bin/bash ~/dotfiles/setup.sh
Expand Down Expand Up @@ -69,3 +69,5 @@ mise bootstrap status # mise の設定と現在の状態を照合する
`mise run doctor` は新しいログインシェルで各 CLI の起動、Worktrunk の zsh 連携、OrbStack の隔離機能を確かめる。スキルの配置や hooks の接続状態は dotagents の `status` と `doctor` で調べる。

設定を変えたら `./tests/smoke.sh` を実行する。一時ホームで初回のプレビュー、既存設定の引き継ぎ、再実行、worktree の切り替えを確認できる。PR の macOS CI では `./tests/smoke.sh --with-tools` を使い、指定版のツールを新しい zsh で起動する。

[MIT ライセンス](LICENSE)で公開しています。[変更の提案](CONTRIBUTING.md)と[脆弱性の報告先](SECURITY.md)はこちらです。
5 changes: 5 additions & 0 deletions SECURITY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# 脆弱性の報告

セットアップで意図しないコードが実行される、個人設定が上書きされる、認証情報が露出するといった問題は、[GitHub の非公開報告窓口](https://github.com/bwkw/dotfiles/security/advisories/new)でお知らせください。

該当するコミットやファイル、再現に必要な操作、影響する範囲を記載してください。秘密鍵、トークン、環境変数の値は伏せてください。すでに公開した認証情報は、発行元で失効・再発行してください。
Loading