Skip to content

Allow to pass auth token to build registry#677

Merged
jonesbusy merged 1 commit intooras-project:mainfrom
jonesbusy:feature/static-token
Apr 11, 2026
Merged

Allow to pass auth token to build registry#677
jonesbusy merged 1 commit intooras-project:mainfrom
jonesbusy:feature/static-token

Conversation

@jonesbusy
Copy link
Copy Markdown
Collaborator

Fix #672

Description

In some scenario the Bearer Auth token is requested by an other system (for example token exchange).

Allow to build a registry directly with Bearer authentication and allow to copy settings when the token change (responsibility of the caller to manager token)

Testing done

Added tests

Submitter checklist

  • I have read and understood the CONTRIBUTING guide
  • I have run mvn license:update-file-header, mvn spotless:apply, pre-commit run -a, mvn clean install before opening the PR

@jonesbusy jonesbusy added the enhancement New feature or request label Apr 11, 2026
Signed-off-by: Valentin Delaye <jonesbusy@users.noreply.github.com>
@jonesbusy jonesbusy force-pushed the feature/static-token branch from 5aaa044 to a8b556f Compare April 11, 2026 17:09
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 11, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 86.73%. Comparing base (012f162) to head (a8b556f).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main     #677      +/-   ##
============================================
+ Coverage     86.43%   86.73%   +0.30%     
+ Complexity      937      935       -2     
============================================
  Files            43       43              
  Lines          2904     2910       +6     
  Branches        364      364              
============================================
+ Hits           2510     2524      +14     
+ Misses          234      229       -5     
+ Partials        160      157       -3     

☔ View full report in Codecov by Sentry.
📢 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.

@jonesbusy jonesbusy merged commit 0de9534 into oras-project:main Apr 11, 2026
8 checks passed
@jonesbusy jonesbusy deleted the feature/static-token branch April 11, 2026 17:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow specify bearer token on Registry

1 participant