Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import Danger File over SSH #1392

Open
mcoe-git opened this issue Oct 23, 2022 · 2 comments
Open

Import Danger File over SSH #1392

mcoe-git opened this issue Oct 23, 2022 · 2 comments

Comments

@mcoe-git
Copy link

mcoe-git commented Oct 23, 2022

How to import dangerfiles with custom URLs (BitBucket Server) which requires authentication ?

Is it possible to allow imports via ssh so that it can use the same credentials on system ?

@orta
Copy link
Member

orta commented Oct 23, 2022

Unsure, I'd recommend reading the code - maybe git is a supported protocol in the codebase

@manicmaniac
Copy link
Member

@mcoe-git

maybe git is a supported protocol in the codebase

Danger::DangerfilePlugin#import_dangerfile method eventually calls #download, which only supports HTTPS or local path.

raise "URL is not https, for security reasons `danger` only supports encrypted requests" if URI.parse(path_or_url).scheme != "https"

However, Bitbucket Server seems to support Basic Auth according to the document.
So the possible workaround is including username and password in the URL like https://username:password@example.com/path/to/Dangerfile.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants