Repository navigation
build(deps): bump oras.land/oras-go/v2 from 2.6.0 to 2.7.0 - #598
Merged
Merged
Conversation
dependabot
Bot
requested review from
NiazFK,
gokarnm,
priteshbandi,
rgnote,
shizhMSFT and
toddysm
as code owners
November 2, 2026 00:42
This was referenced Nov 30, 2026
cshung
added a commit
to cshung/notation-go
that referenced
this pull request
Nov 30, 2026
Preserve the incoming request on the mock upload response so relative Location headers can be resolved against the original registry URL. Return an upload-session path and handle the follow-up request at that path with 201 Created. This makes the mock compatible with the upload host validation introduced in ORAS 2.6.2 without weakening the validation or changing production code. It also unblocks the registry tests for the ORAS 2.7 upgrade in notaryproject#598. Credit to siretart for documenting the root cause and providing this mock correction in the Debian investigation: notaryproject#587 (comment) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 3a297bdb-d8ae-492d-bae7-d555afa73630 Signed-off-by: cshung <3410332+cshung@users.noreply.github.com>
yizha1
pushed a commit
that referenced
this pull request
Nov 30, 2026
## Summary
The error paths in `EncodeKeySpec`, `HashAlgorithmFromKeySpec`, and
`EncodeSigningAlgorithm` format integer-backed values with `%q`. This
renders rejected key types, key sizes, and algorithm IDs as Unicode
characters rather than meaningful diagnostic values. For example, an RSA
key with size 1234 produces `invalid KeySpec {'\x01' 'Ӓ'}`.
This change reports named RSA/EC key types and labeled sizes in bits,
with decimal values for unknown key types and signing algorithms:
```text
unsupported key specification: type=RSA, size=1234 bits
unsupported key specification: type=99, size=2048 bits
unsupported signing algorithm: 1234
```
Both key-specification conversion functions share the error formatting.
Tests assert the diagnostic messages for unsupported RSA/EC sizes,
unknown key types, zero values, and unknown algorithms, while retaining
the existing supported-conversion cases.
This intentionally changes error text, but does not change accepted
inputs or successful return values. No dependencies or registry mocks
are changed.
## Motivation
This is a pre-existing formatting bug exposed by the Go 1.26 vet checks
when the module declares Go 1.26, as proposed in #598. The same
character-formatted output was reproduced with Go 1.23, 1.24, and 1.26.
The repair is independent of the ORAS upgrade and works with the
existing Go 1.23 minimum and ORAS 2.6.0 dependency.
Related: #598.
## Validation
- Go 1.23.0: full uncached race-enabled SDK suite with coverage passed.
- Go 1.24.0: uncached race-enabled `./plugin/proto` tests passed.
- Go 1.26.0: `go vet ./...` passed.
- Formatting and `git diff --check` passed.
These are local results; PR CI will provide the upstream checks.
Signed-off-by: cshung <3410332+cshung@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 3a297bdb-d8ae-492d-bae7-d555afa73630
yizha1
pushed a commit
that referenced
this pull request
Nov 30, 2026
## Summary Correct the blob-upload responses in `mockRemoteClient.Do`: - Preserve the original HTTP request on the response so `http.Response.Location()` can resolve relative upload URLs against the registry URL. - Return `/v2/test/blobs/uploads/test` as the upload-session location. - Handle the follow-up upload request at that path with `201 Created`. The previous response had no request URL, so newer ORAS upload-host validation resolved the relative location without a registry host and rejected it. This repairs the mock rather than bypassing or weakening the host/scheme checks. Only `registry/repository_test.go` changes. No production code, dependencies, Go minimum version, or error-message changes are included. This applies the correction already documented in [the Debian investigation](#587 (comment)). Fixes #587. Related: #598. ## Validation With the current dependencies (ORAS 2.6.0): - Go 1.23.0: full uncached race-enabled SDK suite passed. - Go 1.24.0: uncached race-enabled registry suite passed. In an isolated source snapshot inside the candidate checkout, with ORAS 2.7.0 and Go 1.26.0: - Reproduced the three upload-test failures using the original mock. - Applied this exact mock repair; the entire uncached race-enabled registry suite and `go vet ./registry` passed. - Temporary dependency changes were confined to the validation snapshot and are not part of this PR. Formatting and `git diff --check` passed. These are local results; upstream CI is separate. Signed-off-by: cshung <3410332+cshung@users.noreply.github.com> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 3a297bdb-d8ae-492d-bae7-d555afa73630
Contributor
|
@dependabot rebase |
yizha1
force-pushed
the
dependabot/go_modules/oras.land/oras-go/v2-2.7.0
branch
from
November 30, 2026 22:41
e45c617 to
d19c1b2
Compare
yizha1
pushed a commit
to notaryproject/notation-core-go
that referenced
this pull request
Dec 1, 2026
## Summary Test the latest stable Go release and the previous release explicitly in the shared build and CodeQL workflows: currently Go 1.27 and Go 1.26. - Replace the Go 1.23/1.24 default matrix with `1.26.x` and `1.27.x`, retaining `check-latest: true` so setup-go selects the latest patch of each series. - Add an optional JSON `go-versions` input so callers can override the default matrix when needed. - Set `GOTOOLCHAIN=local` so a matrix job cannot silently download and test a different Go version. - Print the effective Go version, toolchain setting, and GOROOT before testing or analysis. No module minimum, dependency, JWT, or production code changes are included. The default matrix should be rolled forward when a new stable Go series is released. ## Motivation The shared workflows currently install Go 1.23/1.24. For callers requiring a newer compiler, automatic toolchain switching can make both jobs test the same newer compiler while their labels still suggest older-version coverage. For example, notaryproject/notation-go#598 installed Go 1.24 but actually ran Go 1.26.0, hitting the switched-toolchain coverage bug [golang/go#75031](golang/go#75031). Installing the current patch explicitly avoids relying on that old toolchain. Because callers consume these reusable workflows via `@main`, merging this PR changes their default compiler matrix too. The version override allows an explicit caller-specific matrix; disabling automatic switching makes incompatible module requirements fail visibly rather than invalidating the advertised matrix. ## Related work and merge order - Merge #328 first to remove the existing live DigiCert test instability. The current core tests fail the same certificate-subject assertion on both proposed compilers, independently of this CI change. - This is a focused alternative to the CI changes in #325. It tests both Go 1.26 and 1.27 without the dependency upgrades, JWT migration, or Go 1.27.3 minimum imposed by that PR. - Together, these changes are intended to unblock CI and the dependency-upgrade work, including notaryproject/notation-go#598. ## Validation - `actionlint` passed for both reusable workflows and their local build/CodeQL callers. - Full notation-go #598 race/coverage suites passed with explicit Go 1.26.11 and Go 1.27.4 toolchains and `GOTOOLCHAIN=local`. - Core's full race/coverage suites reproduced only the existing DigiCert certificate-subject failure on both compilers; the same assertion also fails with Go 1.24.0. - An older installed compiler correctly rejected notation-go's Go 1.26 module requirement with `GOTOOLCHAIN=local`, rather than silently switching. - The workflow diff preserves the existing CRLF line endings; `git diff --check` passes with `core.whitespace=cr-at-eol`. GitHub-hosted workflow execution and CodeQL analysis have not been validated locally. Signed-off-by: cshung <3410332+cshung@users.noreply.github.com> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 3a297bdb-d8ae-492d-bae7-d555afa73630
Contributor
|
@dependabot rebase |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #598 +/- ##
==========================================
+ Coverage 82.94% 84.99% +2.04%
==========================================
Files 36 36
Lines 2645 2645
==========================================
+ Hits 2194 2248 +54
- Misses 310 396 +86
+ Partials 141 1 -140 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Contributor
|
@dependabot recreate |
yizha1
added a commit
that referenced
this pull request
Dec 2, 2026
Recreate #598. Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Contributor
|
@dependabot recreate |
Contributor
Author
|
Looks like this PR has been edited by someone other than Dependabot. That means Dependabot can't rebase it - sorry! If you're happy for Dependabot to recreate it from scratch, overwriting any edits, you can request |
Bumps oras.land/oras-go/v2 from 2.6.0 to 2.7.0. --- updated-dependencies: - dependency-name: oras.land/oras-go/v2 dependency-version: 2.7.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
dependabot
Bot
force-pushed
the
dependabot/go_modules/oras.land/oras-go/v2-2.7.0
branch
from
December 3, 2026 02:37
d19c1b2 to
e87b5bd
Compare
dependabot
Bot
deleted the
dependabot/go_modules/oras.land/oras-go/v2-2.7.0
branch
December 4, 2026 19:42
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bumps oras.land/oras-go/v2 from 2.6.0 to 2.7.0.