Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
8 changes: 8 additions & 0 deletions .github/workflows/coverage-report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ on:
type: string
default: 'Coverage Report'

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

permissions:
contents: read
pull-requests: write
Expand All @@ -55,6 +59,7 @@ jobs:
report-jacoco:
name: JaCoCo Coverage Report
runs-on: ubuntu-latest
timeout-minutes: 10
if: inputs.format == 'jacoco'
steps:
- name: Checkout code
Expand All @@ -80,6 +85,7 @@ jobs:
report-jest:
name: Jest Coverage Report
runs-on: ubuntu-latest
timeout-minutes: 10
if: inputs.format == 'jest'
steps:
- name: Checkout code
Expand Down Expand Up @@ -161,6 +167,7 @@ jobs:
report-cobertura:
name: Cobertura Coverage Report
runs-on: ubuntu-latest
timeout-minutes: 10
if: inputs.format == 'cobertura'
steps:
- name: Checkout code
Expand Down Expand Up @@ -194,6 +201,7 @@ jobs:
report-lcov:
name: LCOV Coverage Report
runs-on: ubuntu-latest
timeout-minutes: 10
if: inputs.format == 'lcov'
steps:
- name: Checkout code
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ jobs:
with:
name: devcontainer-info
path: devcontainer-info.txt
retention-days: 7

- name: Create Release
if: steps.release.outputs.skip_release != 'true' && (github.event_name != 'workflow_dispatch' || inputs.release_mode == 'auto')
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/manual-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,16 @@ on:
description: 'Custom version (optional, overrides version type)'
required: false

concurrency:
group: ${{ github.workflow }}
cancel-in-progress: false

permissions: {}

jobs:
release:
runs-on: ubuntu-latest
timeout-minutes: 30
permissions:
contents: write
packages: write
Expand Down
4 changes: 4 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ Development infrastructure template repository providing DevContainer images, CI

| Directory | Purpose |
| -------------------- | ------------------------------------------------ |
| `.agents/` | AI agent skills and configurations |
| `.claude/commands/` | Claude Code slash commands |
| `.claude/hooks/` | Pre/post hook scripts for quality enforcement |
| `.claude/rules/` | Claude Code rules for development standards |
Expand All @@ -51,10 +52,12 @@ Development infrastructure template repository providing DevContainer images, CI
| `.vscode/` | VS Code workspace settings |
| `brew/` | Homebrew package management (Linux only) |
| `credentials/` | Credential templates and filtering documentation |
| `dist/` | dist |
| `docs/` | Documentation and ADRs |
| `dot/` | Dotfiles (DevContainer .zshrc, peco) |
| `eslint/` | ESLint configuration and plugins |
| `git/` | Git hooks and configuration |
| `next/` | Next.js project templates |
| `nix/` | nix-darwin + home-manager (macOS environment) |
| `npm/` | npm global configuration and library management |
| `script/` | Utility shell scripts |
Expand Down Expand Up @@ -136,6 +139,7 @@ Additional test commands: `test:integration` (BATS), `test:coverage` (Jest + cov
| `block_config_edit.py` | Pre edit | Protect configuration files |
| `block_dangerous_commands.py` | Pre Bash | Block destructive commands |
| `block_git_no_verify.py` | Pre git commit/push | Block `--no-verify` and `HUSKY=0` |
| `common.py` | Unknown | common |

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

Hook metadata is too vague to be actionable.

Line 142 should not use Unknown/common; please document the actual trigger and specific responsibility of common.py to keep hook operations auditable.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@AGENTS.md` at line 142, The hook metadata entry for common.py is currently
listing generic values ("Unknown"/"common"); update that row to describe the
actual hook trigger and responsibility by replacing "Unknown" with the explicit
trigger (e.g., "pre-commit", "post-merge", "startup", or the webhook/event name)
and replace the "common" responsibility with a concise statement of what
common.py does (e.g., "initializes shared agent state and exposes helper
utilities: load_config(), init_logger(), register_handlers()"), and include any
inputs/outputs or side effects for auditability; locate and edit the AGENTS.md
table row referencing common.py and ensure the metadata fields clearly state
trigger, purpose, and key exported functions/classes used by the hook.

| `post_commit_adr_reminder.py` | Post git commit | Remind ADR for architectural changes |
| `post_edit_auto_lint.py` | Post edit | Auto-format and lint |
| `post_git_push_ci.py` | Post git push | Monitor CI status |
Expand Down
2 changes: 1 addition & 1 deletion templates/workflows/dependabot-auto-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
- name: Fetch Dependabot metadata
if: github.actor == 'dependabot[bot]'
id: metadata
uses: dependabot/fetch-metadata@v2
uses: dependabot/fetch-metadata@21025c705c08248db411dc16f3619e6b5f9ea21a # v2

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🔴 Critical

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
# Verify dependabot/fetch-metadata SHA matches v2 tag
curl -s "https://api.github.com/repos/dependabot/fetch-metadata/git/refs/tags/v2" | jq -r '.object.sha'
echo "Expected SHA in workflow: 21025c705c08248db411dc16f3619e6b5f9ea21a"

Repository: keito4/config

Length of output: 164


SHA does not match v2 tag — update to correct commit hash.

The pinned SHA 21025c705c08248db411dc16f3619e6b5f9ea21a does not correspond to the v2 release. The actual SHA for the v2 tag is ffa630c65fa7e0ecfa0625b5ceda64399aea1b36. Update the action reference to use the correct hash:

Current vs. correct SHA
-        uses: dependabot/fetch-metadata@21025c705c08248db411dc16f3619e6b5f9ea21a # v2
+        uses: dependabot/fetch-metadata@ffa630c65fa7e0ecfa0625b5ceda64399aea1b36 # v2
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@templates/workflows/dependabot-auto-merge.yml` at line 40, The dependabot
action pin is using the wrong commit hash for the v2 tag: update the action
reference that currently reads
dependabot/fetch-metadata@21025c705c08248db411dc16f3619e6b5f9ea21a to the
correct SHA dependabot/fetch-metadata@ffa630c65fa7e0ecfa0625b5ceda64399aea1b36
in the workflow file so the uses: line for the dependabot/fetch-metadata action
points to the actual v2 commit.

with:
github-token: ${{ secrets.GITHUB_TOKEN }}

Expand Down
4 changes: 2 additions & 2 deletions templates/workflows/label-sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ jobs:
timeout-minutes: 5
steps:
- name: Checkout
uses: actions/checkout@v6
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6

- name: Sync labels
uses: EndBug/label-sync@v2
uses: EndBug/label-sync@52074158190acb45f3077f9099fea818aa43f97a # v2
with:
config-file: .github/labels.yml
# 既存ラベルを保持(false = labels.yml にないラベルを削除しない)
Expand Down
Loading