Skip to content

build(deps): bump oras.land/oras-go/v2 from 2.6.0 to 2.7.0 - #598

Merged
yizha1 merged 1 commit into
mainfrom
dependabot/go_modules/oras.land/oras-go/v2-2.7.0
Dec 4, 2026
Merged

yizha1 merged 1 commit into
mainfrom
dependabot/go_modules/oras.land/oras-go/v2-2.7.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Bumps oras.land/oras-go/v2 from 2.6.0 to 2.7.0.

Note
Automatic rebases have been disabled on this pull request as it has been open for over 30 days.

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file go Pull requests that update Go code labels Nov 2, 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
@cshung

cshung commented Nov 30, 2026

Copy link
Copy Markdown
Contributor

@dependabot rebase

@yizha1
yizha1 force-pushed the dependabot/go_modules/oras.land/oras-go/v2-2.7.0 branch from e45c617 to d19c1b2 Compare November 30, 2026 22:41
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
@yizha1

yizha1 commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

@dependabot rebase

@codecov

codecov Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 84.99%. Comparing base (696b555) to head (e87b5bd).

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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@yizha1 yizha1 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@yizha1

yizha1 commented Dec 2, 2026

Copy link
Copy Markdown
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>

yizha1 commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

@dependabot recreate

@dependabot @github

dependabot Bot commented on behalf of github Dec 3, 2026

Copy link
Copy Markdown
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 @dependabot recreate.

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
dependabot Bot force-pushed the dependabot/go_modules/oras.land/oras-go/v2-2.7.0 branch from d19c1b2 to e87b5bd Compare December 3, 2026 02:37
@yizha1
yizha1 merged commit e6a5cf0 into main Dec 4, 2026
9 checks passed
@dependabot
dependabot Bot deleted the dependabot/go_modules/oras.land/oras-go/v2-2.7.0 branch December 4, 2026 19:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file go Pull requests that update Go code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants