pkg: run Git as the installation user #24019

Merged
MikeMcQuaid opened 7:05am on September 17, 2026 wanted to merge 137 Δ into homebrew/brew main from
pkg-git-install-user

Pull request #24019 quality checks

Code files and functions touched by this pull request are analyzed below.

Quality targets

How does this pull request compare to chosen code quality targets? Read more about code quality targets.

Target name Target value This PR
Maximum Diff Delta per PR 500 137
Maximum comment count per PR 10 0
Pull request maximum business days between activity 3 1
Pull request maximum business days open 5 1

Coupled files

Are there any files from this commit that are always committed alongside another file? This often suggests that there exists code coupling to potentially remove. Read more about code coupling

No file coupling detected. 🎉

Biggest files changes in pull request

Path View whole file Lines removed Lines added Final line count
Library/Homebrew/test/pkg_postinstall_spec.rb 0 81 81
package/scripts/postinstall 15 17 138
.github/workflows/release.yml 13 1 340
docs/Homebrew-Security-and-Supply-Chain.md 0 10 274
docs/Installation.md 1 5 112
docs/Support-Tiers.md 0 0 175

️ Biggest functions grown or shrunk by pull request

Which functions had their line count change as part of this pull request?

Could not find any functions changed by this pull request.