<feed xmlns='http://www.w3.org/2005/Atom'>
<title>claude-plugins-official.git/plugins/security-guidance/tests/test_nested_repos.py, branch bump/cloud-sql-sqlserver</title>
<subtitle>Official Claude Code plugin directory
</subtitle>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/claude-plugins-official.git/'/>
<entry>
<title>Merge main into mhegazy/sg-index-copy-all-gitlinks</title>
<updated>2026-11-05T22:33:05+00:00</updated>
<author>
<name>Claude</name>
<email>noreply@anthropic.com</email>
</author>
<published>2026-11-05T22:33:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/claude-plugins-official.git/commit/?id=64e2f0cbf3f9c076a2709428e92fdb77e4da6f04'/>
<id>64e2f0cbf3f9c076a2709428e92fdb77e4da6f04</id>
<content type='text'>
Co-authored-by: mhegazy &lt;mhegazy@anthropic.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Co-authored-by: mhegazy &lt;mhegazy@anthropic.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>security-guidance: drop every gitlink from the index copy</title>
<updated>2026-11-04T20:06:27+00:00</updated>
<author>
<name>Mohamed Hegazy</name>
<email>mhegazy@anthropic.com</email>
</author>
<published>2026-11-04T19:36:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/claude-plugins-official.git/commit/?id=2dd1569edd65f7f41cb04790dec1780cbc1e5511'/>
<id>2dd1569edd65f7f41cb04790dec1780cbc1e5511</id>
<content type='text'>
Whether git starts something in a gitlink's directory is decided when git runs,
so the check for a .git there beforehand can go stale. Remove all of them from
the copy. On git older than 2.34 the baseline for a submodule that is not
checked out falls back to HEAD.

Co-authored-by: mhegazy &lt;mhegazy@anthropic.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Whether git starts something in a gitlink's directory is decided when git runs,
so the check for a .git there beforehand can go stale. Remove all of them from
the copy. On git older than 2.34 the baseline for a submodule that is not
checked out falls back to HEAD.

Co-authored-by: mhegazy &lt;mhegazy@anthropic.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>security-guidance: read git log output without signature checks</title>
<updated>2026-11-04T19:38:34+00:00</updated>
<author>
<name>Mohamed Hegazy</name>
<email>mhegazy@anthropic.com</email>
</author>
<published>2026-11-04T19:38:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/claude-plugins-official.git/commit/?id=0610eb807de91eb829f4bf9354cfd4bcb45bdcc6'/>
<id>0610eb807de91eb829f4bf9354cfd4bcb45bdcc6</id>
<content type='text'>
With log.showSignature set, git log and git show verify every signed commit,
which adds lines to the output the hooks parse and starts gpg.program. Set it
off for the hooks' git and for the commit reviewer's environment.

Co-authored-by: mhegazy &lt;mhegazy@anthropic.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
With log.showSignature set, git log and git show verify every signed commit,
which adds lines to the output the hooks parse and starts gpg.program. Set it
off for the hooks' git and for the commit reviewer's environment.

Co-authored-by: mhegazy &lt;mhegazy@anthropic.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>security-guidance: make one nested repository test work on Windows</title>
<updated>2026-10-21T05:32:10+00:00</updated>
<author>
<name>Claude</name>
<email>noreply@anthropic.com</email>
</author>
<published>2026-10-21T05:32:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/claude-plugins-official.git/commit/?id=2de59fe9d850775f9f516180d144becd4db2c3da'/>
<id>2de59fe9d850775f9f516180d144becd4db2c3da</id>
<content type='text'>
The test deleted a repository with shutil.rmtree, which fails on git's
read-only object files there. It moves the directory away instead.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The test deleted a repository with shutil.rmtree, which fails on git's
read-only object files there. It moves the directory away instead.
</pre>
</div>
</content>
</entry>
<entry>
<title>security-guidance: keep nested repositories out of the index copy</title>
<updated>2026-10-20T23:00:54+00:00</updated>
<author>
<name>Claude</name>
<email>noreply@anthropic.com</email>
</author>
<published>2026-10-20T23:00:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/claude-plugins-official.git/commit/?id=a00d13d77ba7bf13a9d2ae0db5f7e24aeb4b12b2'/>
<id>a00d13d77ba7bf13a9d2ae0db5f7e24aeb4b12b2</id>
<content type='text'>
The hooks run `git stash create` (the turn baseline) and
`git add --intent-to-add` (untracked files) on a throwaway copy of the
index. A nested repository that the index records is a gitlink entry
there. `git stash create` takes no --ignore-submodules option and
`git add` reads the gitlinks its paths cover, so both started a second
git inside that directory.

Before anything runs on the copy, remove the gitlink entry of every
nested repository from the copy, never from the real index. If that
removal fails, do not use the copy at all: the baseline falls back to
HEAD and runs no stash create, and the diff reads the real index with
--ignore-submodules=all. A gitlink whose directory has no `.git` (a
submodule that is not checked out) stays; git starts nothing there.

Run the intent-to-add `git add` with literal pathspecs, in that one
call's environment only.

The index file is scanned for a gitlink's mode bytes first, so a
repository without one starts no extra git process.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The hooks run `git stash create` (the turn baseline) and
`git add --intent-to-add` (untracked files) on a throwaway copy of the
index. A nested repository that the index records is a gitlink entry
there. `git stash create` takes no --ignore-submodules option and
`git add` reads the gitlinks its paths cover, so both started a second
git inside that directory.

Before anything runs on the copy, remove the gitlink entry of every
nested repository from the copy, never from the real index. If that
removal fails, do not use the copy at all: the baseline falls back to
HEAD and runs no stash create, and the diff reads the real index with
--ignore-submodules=all. A gitlink whose directory has no `.git` (a
submodule that is not checked out) stays; git starts nothing there.

Run the intent-to-add `git add` with literal pathspecs, in that one
call's environment only.

The index file is scanned for a gitlink's mode bytes first, so a
repository without one starts no extra git process.
</pre>
</div>
</content>
</entry>
<entry>
<title>security-guidance: stay out of repositories nested in the work tree</title>
<updated>2026-10-19T17:36:13+00:00</updated>
<author>
<name>Claude</name>
<email>noreply@anthropic.com</email>
</author>
<published>2026-10-19T17:36:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/claude-plugins-official.git/commit/?id=7a151516fa58fd0160bacaf8fb5966931170bb9c'/>
<id>7a151516fa58fd0160bacaf8fb5966931170bb9c</id>
<content type='text'>
A directory with its own .git inside the work tree (a submodule, a vendored
checkout, an unpacked archive) was added to the throwaway index as a submodule
entry, and git then started a second git inside it to see whether it had
changed. Nothing in such a directory is reviewed.

git status and work-tree git diff now ignore submodule entries, an untracked
nested repository is no longer listed as a changed file or added to the index
copy, and a commit that moves a submodule is always shown as its two commit ids.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
A directory with its own .git inside the work tree (a submodule, a vendored
checkout, an unpacked archive) was added to the throwaway index as a submodule
entry, and git then started a second git inside it to see whether it had
changed. Nothing in such a directory is reviewed.

git status and work-tree git diff now ignore submodule entries, an untracked
nested repository is no longer listed as a changed file or added to the index
copy, and a commit that moves a submodule is always shown as its two commit ids.
</pre>
</div>
</content>
</entry>
</feed>
