chore(deps): bump simple-git from 3.36.0 to 4.0.1 in /packages/host-service
Bumps simple-git from 3.36.0 to 4.0.1.
Release notes
Sourced from simple-git's releases.
simple-git@4.0.1
Patch Changes
- 365f52d: Prepare package.json before publishing.
simple-git@4.0.0
Major Changes
98864c6: Major upgrade to v4. In this version:
- Removed previously available default export, now uses a consistently named
simpleGitexport.- Removed previously deprecated import
simple-git/promise(change to using the mainsimple-gitimport).- Removed legacy
gitPexport (change to using the mainsimpleGitexport).// v3 - previously supported imports import simpleGit from "simple-git"; import { gitP } from "simple-git"; import simpleGit from "simple-git/promise"; const simpleGit = require("simple-git");
// v4 - consolidates to a single supported import
import { simpleGit } from "simple-git";
const { simpleGit } = require("simple-git");
- Prevents the use of abbreviated long-form
gitoptions:// v3 - allowed the use of unambiguous long-form options git.raw("clone", "--conf=user.name=me", "...");
// v4 - requires full option names, abbreviated option names will now throw a GitConfigurationError
git.raw("fetch", "--config=user.name=me", "...");
- Ambient environment variables are filtered before passing into the
gitchild process.// v3 process.env.FOO = "bar"; process.env.GIT_TEMPLATE_DIR = "./some/path"; simpleGit().raw("clone"); // git child process can see both environment variables// v4
process.env.FOO = "bar";
process.env.GIT_TEMPLATE_DIR = "./some/path";
simpleGit().raw("clone"); // git child process now sees only FOO
simpleGit({
... (truncated)
Changelog
Sourced from simple-git's changelog.
4.0.1
Patch Changes
- 365f52d: Prepare package.json before publishing.
4.0.0
Major Changes
98864c6: Major upgrade to v4. In this version:
- Removed previously available default export, now uses a consistently named
simpleGitexport.- Removed previously deprecated import
simple-git/promise(change to using the mainsimple-gitimport).- Removed legacy
gitPexport (change to using the mainsimpleGitexport).// v3 - previously supported imports import simpleGit from "simple-git"; import { gitP } from "simple-git"; import simpleGit from "simple-git/promise"; const simpleGit = require("simple-git");
// v4 - consolidates to a single supported import
import { simpleGit } from "simple-git";
const { simpleGit } = require("simple-git");
- Prevents the use of abbreviated long-form
gitoptions:// v3 - allowed the use of unambiguous long-form options git.raw("clone", "--conf=user.name=me", "...");
// v4 - requires full option names, abbreviated option names will now throw a GitConfigurationError
git.raw("fetch", "--config=user.name=me", "...");
Thanks to
@anir0y,@CFionaBF,@Leeziao,@internetteletubbie,@idisdi,@the-vibe-dev,@D7EAD,@dellalibera,@gdegrange,@bilguunbicktivism,@cruzryan,@b1ue0ceanRun,@oss-security-shopifyfor identifying the vulnerability.
- Ambient environment variables are filtered before passing into the
gitchild process.// v3 process.env.FOO = "bar"; process.env.GIT_TEMPLATE_DIR = "./some/path"; simpleGit().raw("clone"); // git child process can see both environment variables
... (truncated)
Commits
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
You can disable automated security fix PRs for this repo from the Security Alerts page.
Summary by cubic
Upgrades simple-git from 3.36.0 to 4.0.1 in packages/host-service. This is a major version bump that fixes an exec-path vulnerability, so code using simple-git will need updating before this can merge.
Migration
- Replace the default import and
gitPexport with the namedsimpleGitexport and remove thesimple-git/promiseimport. - Use full long-form git options, since abbreviated ones now throw
GitConfigurationError. - Pass git config explicitly instead of relying on ambient environment variables, which are now filtered out of the child process.