Skip to content

fix(ci): remove accidental .claude/skills submodule gitlink - #138

Merged
sarg3nt merged 1 commit into
mainfrom
fix/remove-claude-skills-gitlink
May 17, 2026
Merged

fix(ci): remove accidental .claude/skills submodule gitlink#138
sarg3nt merged 1 commit into
mainfrom
fix/remove-claude-skills-gitlink

Conversation

@sarg3nt

@sarg3nt sarg3nt commented May 17, 2026

Copy link
Copy Markdown
Owner

Summary

  • Commit 015fd5e (CSS layout fix) accidentally added .claude/skills to the tree as a submodule gitlink (mode 160000) without a corresponding .gitmodules entry.
  • This has been breaking actions/checkout on every workflow that runs on main. The submodule-cleanup step in checkout v4/v6 hard-fails with fatal: No url found for submodule path '.claude/skills' in .gitmodules.
  • Symptom on the workflows tab: OpenSSF Scorecard has failed on every push and on the scheduled Sunday run since 2026-05-11 (~30 consecutive failures). Gitleaks and Trivy emit the same warning during their checkouts.
  • Fix: drop the gitlink from the index and add .claude/skills/ + .claude/worktrees/ to .gitignore so per-developer agent state can't slip back into the tree. The intentionally-tracked .claude/commands/ slash commands and .claude/settings.local.json.example are unaffected.

Example failing run: https://github.com/sarg3nt/gearbox/actions/runs/25999377392

Test plan

  • Scorecard run on this PR's push to main (after merge) succeeds end-to-end.
  • No "fatal: No url found for submodule path" warnings in Trivy / Gitleaks checkouts after merge.
  • git ls-tree HEAD .claude/ no longer shows a 160000 commit entry.

🤖 Generated with Claude Code

Commit 015fd5e ("fix: add charts CSS to base layout") inadvertently
committed .claude/skills as a submodule (mode 160000) without adding
a .gitmodules entry. Every subsequent actions/checkout invocation on
main has failed its submodule cleanup with:

    fatal: No url found for submodule path '.claude/skills' in .gitmodules

This caused OpenSSF Scorecard runs to fail outright and Gitleaks /
Trivy to emit checkout warnings on every push and on the weekly
scheduled run.

Drop the gitlink from the index and ignore .claude/skills/ and
.claude/worktrees/ so future agent state doesn't slip back into the
tree. .claude/commands/ and .claude/settings.local.json.example
remain tracked as before.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings May 17, 2026 18:59

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Removes an accidental .claude/skills submodule gitlink that was added without a .gitmodules entry, which had been breaking actions/checkout (and thus OpenSSF Scorecard, Gitleaks, and Trivy) on every workflow run on main. Also extends .gitignore to prevent per-developer Claude Code state from being re-committed.

Changes:

  • Drops the stray 160000 gitlink at .claude/skills from the index.
  • Adds .claude/skills/ and .claude/worktrees/ to .gitignore with a comment clarifying that .claude/commands/ and .claude/settings.local.json.example remain intentionally tracked.

@sarg3nt
sarg3nt merged commit 79d3a3e into main May 17, 2026
26 checks passed
@sarg3nt
sarg3nt deleted the fix/remove-claude-skills-gitlink branch May 17, 2026 19:02
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.

2 participants