Skip to content

fix: strip credentials from the recorded git origin url - #260

Merged
machshev merged 1 commit into
lowRISC:masterfrom
martin-velay:fix_credentials
Sep 3, 2026
Merged

fix: strip credentials from the recorded git origin url#260
machshev merged 1 commit into
lowRISC:masterfrom
martin-velay:fix_credentials

Conversation

@martin-velay

Copy link
Copy Markdown
Contributor

CI checkouts leave the access token in the remote url, like https://oauth2:@host/org/repo. We record that url in the run metadata and print it in the JSON and HTML reports, and those get archived, so the token leaks with them.

ssh urls keep their user. git@ is part of the address, so dropping it would give a url that no longer reaches the remote. Passwords are stripped whatever the scheme.

AI-assisted (Claude Code) - reviewed and approved by author

CI checkouts leave the access token in the remote url, like
https://oauth2:<token>@host/org/repo. We record that url in the run metadata and print
it in the JSON and HTML reports, and those get archived, so the token leaks with them.

ssh urls keep their user. git@ is part of the address, so dropping it would give a url
that no longer reaches the remote. Passwords are stripped whatever the scheme.

AI-assisted (Claude Code) - reviewed and approved by author

Signed-off-by: martin-velay <mvelay@lowrisc.org>

@machshev machshev left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks @martin-velay!

@machshev
machshev added this pull request to the merge queue Sep 3, 2026
Merged via the queue into lowRISC:master with commit e30301a Sep 3, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants