scm: add urlCredentials for authenticated url SCM access - #704
Open
mahaase wants to merge 1 commit into
Open
Conversation
mahaase
force-pushed
the
feature/url-scm-credentials
branch
from
July 30, 2026 15:36
3c20b19 to
a652b60
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #704 +/- ##
==========================================
+ Coverage 89.23% 89.27% +0.04%
==========================================
Files 50 50
Lines 16450 16484 +34
==========================================
+ Hits 14679 14716 +37
+ Misses 1771 1768 -3 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Add a host-scoped `urlCredentials` configuration that injects an HTTP `Authorization` header (token or HTTP basic) into matching url SCMs. The credential is resolved while parsing the recipes and baked into the SCM's `headers`, so it travels with the serialized step and works inside the build sandbox. The header does not influence the build- or variant-id, so adding or changing credentials never triggers rebuilds. An explicitly configured `Authorization` header takes precedence, and the credential is only ever sent to its matching host. - input: parse `urlCredentials` and inject headers for url SCMs - scm/url: send the configured headers on upload - doc: document the `urlCredentials` setting - test: cover credential injection, including the error paths Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
mahaase
force-pushed
the
feature/url-scm-credentials
branch
from
July 31, 2026 12:42
2140c86 to
d6c21cc
Compare
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.
Add a host-scoped
urlCredentialsconfiguration that injects an HTTPAuthorizationheader (token or HTTP basic) into matching url SCMs. The credential is resolved while parsing the recipes and baked into the SCM'sheaders, so it travels with the serialized step and works inside the build sandbox.The header does not influence the build- or variant-id, so adding or changing credentials never triggers rebuilds. An explicitly configured
Authorizationheader takes precedence, and the credential is only ever sent to its matching host.urlCredentialsand inject headers for url SCMsurlCredentialssetting