Skip to content

[cherry-pick] Call /v2/auth/token api to get bearer token for dockerhub adapter#23096

Merged
wy65701436 merged 1 commit into
goharbor:release-2.15.0from
stonezdj:2.15_auth_change_dockerhub
Apr 13, 2026
Merged

[cherry-pick] Call /v2/auth/token api to get bearer token for dockerhub adapter#23096
wy65701436 merged 1 commit into
goharbor:release-2.15.0from
stonezdj:2.15_auth_change_dockerhub

Conversation

@stonezdj

Copy link
Copy Markdown
Contributor

Thank you for contributing to Harbor!

Comprehensive Summary of your change

Issue being fixed

Fixes #(issue)

Please indicate you've done the following:

  • Well Written Title and Summary of the PR
  • Label the PR as needed. "release-note/ignore-for-release, release-note/new-feature, release-note/update, release-note/enhancement, release-note/community, release-note/breaking-change, release-note/docs, release-note/infra, release-note/deprecation"
  • Accepted the DCO. Commits without the DCO will delay acceptance.
  • Made sure tests are passing and test coverage is added if needed.
  • Considered the docs impact and opened a new docs issue or PR with docs changes if needed in website repository.

@stonezdj
stonezdj requested a review from a team as a code owner April 13, 2026 06:09
@stonezdj stonezdj changed the title Call /v2/auth/token api to get bearer token for dockerhub adapter [cherry-pick] Call /v2/auth/token api to get bearer token for dockerhub adapter Apr 13, 2026
@codecov

codecov Bot commented Apr 13, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 23.80952% with 16 lines in your changes missing coverage. Please review.
⚠️ Please upload report for BASE (release-2.15.0@3e57cea). Learn more about missing BASE report.

Files with missing lines Patch % Lines
src/pkg/reg/adapter/dockerhub/client.go 23.80% 15 Missing and 1 partial ⚠️
Additional details and impacted files

Impacted file tree graph

@@                Coverage Diff                @@
##             release-2.15.0   #23096   +/-   ##
=================================================
  Coverage                  ?   66.00%           
=================================================
  Files                     ?     1073           
  Lines                     ?   116503           
  Branches                  ?     2939           
=================================================
  Hits                      ?    76895           
  Misses                    ?    35352           
  Partials                  ?     4256           
Flag Coverage Δ
unittests 66.00% <23.80%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
src/pkg/reg/adapter/dockerhub/consts.go 36.36% <ø> (ø)
src/pkg/reg/adapter/dockerhub/client.go 32.14% <23.80%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@chlins chlins left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

lgtm

@wy65701436 wy65701436 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

@wy65701436
wy65701436 enabled auto-merge (squash) April 13, 2026 08:34
@wy65701436
wy65701436 merged commit 4ed12d9 into goharbor:release-2.15.0 Apr 13, 2026
20 of 21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants