Repository navigation
fix(deps): update module github.com/go-git/go-git/v5 to v5.19.2 [security] - abandoned - #2908
renovate[bot] wants to merge 3 commits into
Conversation
|
Tip Atmos Pro
No affected stacks workflow was detected for this pull request. |
Dependency Review✅ No vulnerabilities or license issues found.Scanned FilesNone |
Edited/Blocked NotificationRenovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR. You can manually request rebase by checking the rebase/retry box above. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2908 +/- ##
=======================================
Coverage 82.77% 82.78%
=======================================
Files 1863 1863
Lines 180609 180609
=======================================
+ Hits 149500 149509 +9
+ Misses 23314 23303 -11
- Partials 7795 7797 +2
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
|
Tip Atmos Pro
No affected stacks workflow was detected for this pull request. |
|
Tip Atmos Pro
No affected stacks workflow was detected for this pull request. |
|
Tip Atmos Pro
No affected stacks workflow was detected for this pull request. |
The merge queue's ephemeral gh-readonly-queue/main/pr-<n>-<sha> ref is deleted as soon as the queue cycles (observed every ~7-13 minutes), which routinely races the multi-minute CodeQL analysis and golangci-lint SARIF uploads and fails them with "ref not found" / "CodeQL job status was configuration error" -- even though nothing is actually wrong with the code. This was blocking every PR in the merge queue, not just this one (confirmed the same failure on #2908 at the same time). Both jobs still run and still report pass/fail on merge_group events, so the merge queue's required checks get a result -- they just skip the upload, which can't succeed against a ref that's already gone by the time it completes. pull_request/push events are unaffected: the upload still runs there, where the ref is stable, so it stays fully required and enforced on PRs. Co-Authored-By: Claude Sonnet 5 <[email protected]>
…very (cloudposse#2905) * fix(kubernetes): close gaps found field-testing Kustomize GitOps delivery (cloudposse#2874) A field-test pass against the merged Kustomize/git-delivery pipeline (validate:false, git error surfacing, single-file delivery, metadata.name exemption) found several confirmed gaps and fixed them: - validate: "false" (a quoted string) was silently ignored by `atmos kubernetes validate/apply/deploy`, leaving validation enabled with no warning; it now fails closed with a clear error. - provision.targets.<name>.split had no type enforcement in the runtime JSON Schema (only in the docs-facing copy), so a bad value like split: "yes" passed `atmos validate stacks` and was silently dropped at runtime; the schema is now synced and the git target fails closed too. - Flipping a git delivery target between directory and single-file mode now warns before the unconditional RemoveAll that replaces whatever is at the managed path. - The managed git workdir cache never reconciled with a changed git.repositories.<name>.uri; reconcile now syncs the local remote URL. - The DNS-1123 invalid-name error embeds a regex with '[', ']', '(', ')' and no spaces, which the CLI's markdown renderer both mangled and hard-wrapped; it's now backtick-fenced as a code span. - Fixed a copy-pasted config example in the atmos-git skill doc (nested signing: {mode: auto} instead of the real flat signing: auto field) that fails to parse if used as-is. - Documented that `atmos kubernetes validate --server` fails on a manifest set that creates its own namespace and delivers into it in the same batch (inherent to server-side dry-run semantics), even though apply/deploy of the same objects succeeds. Co-Authored-By: Claude Sonnet 5 <[email protected]> * fix(security): remediate 7 Dependabot alerts (js-yaml, mermaid) Bumps the existing pnpm overrides for two transitive website dependencies to their patched versions, closing 7 open Dependabot alerts (2 high, 4 medium, 1 low), all npm/transitive: - js-yaml 3.x -> 3.15.1, 4.x -> 4.3.1 (GHSA-5p4m-2wfm-xmqj, quadratic CPU consumption in !!omap resolution) - mermaid -> 11.16.1 (GHSA-rhh3-jpg6-66xh, GHSA-c4c3-pg64-4m4v, GHSA-6x64-9x62-f2gx, GHSA-3rrr-jr9j-h3q3, GHSA-2v8p-3f2j-5mp7) No CodeQL alerts were open. All fixes stay within the same major version, so none are blocked by dependabot.yml's major-bump ignore policy. Verified via `pnpm install` (lockfile now resolves only the patched versions) and `npm run build`. Co-Authored-By: Claude Sonnet 5 <[email protected]> * fix(kubernetes): address CodeRabbit findings on PR cloudposse#2874 - Fix a stale signing.mode: auto reference in the atmos-git skill's GitOps guidance (the config example above it already uses the real flat commit.signing: auto field; per CodeRabbit review on cloudposse#2905). - Close Codecov patch-coverage gaps flagged on the same PR by adding real behavioral tests for the new error-propagation and remote-URL-sync branches in reconcile/syncRemoteURL, executeKubernetesOperation, and parseConfig/Deliver/Fetch. Co-Authored-By: Claude Sonnet 5 <[email protected]> * test(kubernetes): use an invalid object name to prove validate-section precedence TestRunOperationApplyPropagatesValidateSectionError and its validate-op mirror used an already-valid ConfigMap name, so they couldn't distinguish "validate-section resolved first" from "structural check first, but this object happens to pass" -- both orderings return the same error with a valid object. Switching to an invalid name means only the correct precedence still returns ErrKubernetesValidateSectionInvalid. Per CodeRabbit review on cloudposse#2905. Co-Authored-By: Claude Sonnet 5 <[email protected]> * fix(ci): skip SARIF upload on merge_group to unblock the merge queue The merge queue's ephemeral gh-readonly-queue/main/pr-<n>-<sha> ref is deleted as soon as the queue cycles (observed every ~7-13 minutes), which routinely races the multi-minute CodeQL analysis and golangci-lint SARIF uploads and fails them with "ref not found" / "CodeQL job status was configuration error" -- even though nothing is actually wrong with the code. This was blocking every PR in the merge queue, not just this one (confirmed the same failure on cloudposse#2908 at the same time). Both jobs still run and still report pass/fail on merge_group events, so the merge queue's required checks get a result -- they just skip the upload, which can't succeed against a ref that's already gone by the time it completes. pull_request/push events are unaffected: the upload still runs there, where the ref is stable, so it stays fully required and enforced on PRs. Co-Authored-By: Claude Sonnet 5 <[email protected]> * fix(ci): use codeql-action's upload string enum, not a boolean analyze's `upload` input only accepts always/failure-only/never (see github/codeql-action's analyze/action.yml); a boolean expression stringifies to "true"/"false", which isn't a valid value for it. Use the new case() expression function to emit the right string. Co-Authored-By: Claude Sonnet 5 <[email protected]> * fix(security): remediate 5 of 7 open Dependabot alerts - github.com/go-git/go-git/v5 5.19.1 -> 5.19.2 (GHSA-hc8v-wwc9-vgxm high, GHSA-qgq7-7hm3-q39j medium) - nanoid pnpm override 3.3.15 -> 3.3.17 (GHSA-28wg-ghj8-5hjv, GHSA-2v37-7h3g-55p8, both high) - dompurify pnpm override 3.4.12 -> 3.4.13 (GHSA-55q2-fjhq-7xh7, medium) image-size (GHSA-w3rx-r6r6-pgpr, GHSA-5p2g-fcmc-qvqq, both high) has no patched version published yet -- not fixable until upstream ships one. All within existing major versions, so none blocked by dependabot.yml's major-bump ignore policy. NOTICE regenerated for the go-git bump. Verified via targeted go test across every package importing go-git (39/39 pass), atmos lint --changed (0 issues), and npm run build. Co-Authored-By: Claude Sonnet 5 <[email protected]> * test(kubernetes,git): consolidate near-duplicate tests into table-driven form - executor_test.go: merge TestRunOperationApplyPropagatesValidateSectionError and its validate-op mirror into one TestRunOperationPropagatesValidateSectionError table over OperationApply/OperationValidate. - cli_test.go: merge the three exact-call-sequence reconcile tests (TestCloneReconcilesExistingWorkdir, TestCloneReconcileUpdatesRemoteURLOnChange, TestCloneReconcileSkipsRemoteSyncWhenURIEmpty) into one TestCloneReconcileRemoteSync table. Left the two error-propagation reconcile tests (RemoteGetURLFailurePropagates/RemoteSetURLFailurePropagates) as-is: their assertion shape (error identity + "no fetch happened") differs enough from the exact-ordered-sequence checks that folding them into the same table would need nullable fields without real clarity benefit. Per CodeRabbit nitpicks on cloudposse#2905. No behavior change; same assertions, same coverage. Co-Authored-By: Claude Sonnet 5 <[email protected]> * fix(ci): isolate merge_group CI-detection test from the real GITHUB_EVENT_PATH TestSetDescribeAffectedFlagValueInCliArgs_BaseResolution's "CI auto-detect when enabled and no explicit base" subtest sets GITHUB_EVENT_NAME=merge_group and GITHUB_BASE_REF=main to exercise resolveMergeGroupBase's env-fallback path, but never cleared GITHUB_EVENT_PATH. Every other CI-env test in this package explicitly stubs it; this one didn't. That's harmless everywhere except inside an actual merge_group-triggered CI job: there, the real ambient $GITHUB_EVENT_PATH points at a genuine merge_group event payload, so resolveMergeGroupBase successfully reads event.merge_group.base_sha instead of hitting the fallback the test means to exercise, leaving describe.Ref empty and failing the assertion. This went unnoticed until this branch's PR actually made it into the merge queue and Acceptance Tests ran the suite in that exact context, failing identically on linux/macos/windows plus cascading to the k3s demo-helmfile matrix-result gates. Reproduced locally by setting a real GITHUB_EVENT_PATH with merge_group payload as the ambient env before running go test: fails without this fix, passes with it. Co-Authored-By: Claude Sonnet 5 <[email protected]> * fix(ci): make PR Semver Labels report on merge_group too Its job was gated to `if: github.event_name == 'pull_request'`, so it never produced a check run for the merge queue's synthetic commit. Since it's a required status check, the merge queue waited out its full check-response timeout (75 min) hoping for a check that would never appear, then dequeued the PR -- even when every other required check (Tests, CodeQL, Codeowners, symlinks) had already succeeded comfortably within the window (confirmed: this run's other checks finished at 64m38s, but the PR wasn't dequeued until 79 min). The label-check step itself stays pull_request-only (merge_group has no github.event.pull_request for it to check labels against, and the label was already verified before the PR entered the queue); only the job's own if: was widened so it reports a pass for merge_group. Co-Authored-By: Claude Sonnet 5 <[email protected]> * fix(ci): point CodeQL/SARIF uploads at a stable ref on merge_group The earlier fix (skip the upload entirely on merge_group) traded one problem for a worse one: it dodged the "ref not found" upload failure, but the native "CodeQL" required status check is only ever created when a SARIF upload actually happens for that commit -- so skipping the upload left that required check permanently missing on merge_group commits. The merge queue then waits out its full check-response timeout for a check that will never report, exactly like the PR Semver Labels gap, except invisibly this time (every check-run showed success; the queue was just stuck waiting on one that never existed). Confirmed directly: diffed required_status_checks.contexts against the actual check-runs reported for a recent merge_group commit where every workflow run had already succeeded -- "CodeQL" was the only one absent. Fix: explicitly set the codeql-action ref/sha inputs to the merge group's target branch ref (event.merge_group.base_ref, e.g. refs/heads/main -- a ref that persists) and the actual queued merge commit (event.merge_group.head_sha), instead of letting the action auto-detect from GITHUB_REF/GITHUB_SHA (the ephemeral, soon-deleted gh-readonly-queue/... ref). This lets the upload succeed for real instead of needing to skip it. pull_request/push are unaffected -- ref/sha are only overridden for merge_group. Co-Authored-By: Claude Sonnet 5 <[email protected]> --------- Co-authored-by: Claude Sonnet 5 <[email protected]> Co-authored-by: Andriy Knysh <[email protected]>
Autoclosing SkippedThis PR has been flagged for autoclosing. However, it is being skipped due to the branch being already modified. Please close/delete it manually or report a bug if you think this is in error. |
|
This pull request was automatically closed as it no longer contains any changes. This typically happens when another merged pull request has already included this request's |
This PR contains the following updates:
v5.19.1→v5.19.2go-git: Worktree operations may follow symlinks
CVE-2026-71556 / GHSA-hc8v-wwc9-vgxm
More information
Details
Impact
A symlink traversal issue in
go-gitcould allow worktree operations to modify files outside the intended worktree path.The
worktreeFilesystemwrapper rejected dangerous path strings, including paths containing.git, parent-directory components, or control characters. However, it did not prevent filesystem operations from following symbolic links that were already present in the worktree.As a result, a path that is safe when evaluated as a string could still resolve into the repository's Git metadata directory. For example, if
sis a symbolic link to.git, writing tos/configwould modify.git/config.A symbolic link at the final path component could also be followed. For example, if
spoints directly to.git/config, openingsfor writing with truncation could overwrite the repository configuration.Exploitation requires an attacker to be able to introduce or control a symbolic link in the worktree and cause the application to perform a write through that path.
Applications using
storage/memoryfor their Storer, orgo-billy/memfsfor theirWorktree, are not affected by this vulnerability.Patches
The issue has been addressed by making the worktree filesystem wrapper a symlink-safe boundary.
Worktree operations now reject paths where an existing symbolic link in any path component could cause the operation to escape the intended worktree location, including symbolic links at the final component.
Users of filesystem-backed worktrees should upgrade to a patched version.
Credits
Thanks to @kodareef5 for reporting this issue and working with the go-git security team toward its resolution. 🥇
We would also like to thank @HughLewis20, who independently reported the same issue while a fix was already in progress.
Severity
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:LReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
go-git: Malicious reference names may modify files outside the reference storage
CVE-2026-71557 / GHSA-qgq7-7hm3-q39j
More information
Details
Impact
A path traversal issue in
go-gitcould allow malicious reference names to access files outside the repository's intended reference storage.Loose references are stored under
.git/<reference-name>. The reference name was previously used as a path without verifying that the resolved path remained within the reference storage. A name such asrefs/heads/../../configcould therefore resolve to unrelated repository metadata such as.git/configor.git/HEAD.A malicious Git server could advertise such a reference name. The name may also survive refspec mapping; for example, it could be mapped to
refs/remotes/origin/../../configduring a clone or fetch operation.This vulnerability affects filesystem-backed repositories using the
storage/filesystempackage and itsdotgitreference storage. Users relying exclusively on the in-memory storage implementation,storage/memory, are not affected, because reference names are not resolved as filesystem paths.Exploitation requires an application using
go-gitwith filesystem-backed storage to interact with a malicious Git server or otherwise process attacker-controlled reference names.Patches
The issue has been addressed by validating reference names at the
dotgitstorage entry points and rejecting names whose resolved paths could escape the reference storage.Users of filesystem-backed storage should upgrade to a patched version.
Workarounds
Applications that exclusively use
storage/memoryare not affected and do not require a workaround for this vulnerability.For applications using filesystem-backed storage, avoid cloning from or fetching from untrusted Git servers until an upgrade is possible.
Applications that directly construct or process reference names may also validate them before passing them to filesystem-backed
go-gitstorage. Application-level validation should only be considered a temporary mitigation and does not replace upgrading to a patched version.References
Credits
Thanks to @Saku0512 for reporting this issue and @Sahana2524 for proposing the initial fix. 🙇
Severity
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:LReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
Release Notes
go-git/go-git (github.com/go-git/go-git/v5)
v5.19.2Compare Source
What's Changed
Full Changelog: go-git/go-git@v5.19.1...v5.19.2
Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.