Skip to content

Commit 9e05091

Browse files
committed
Take token into consideration for Git providers that require authentication
1 parent 0f92282 commit 9e05091

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

modules/nextflow/src/main/groovy/nextflow/scm/RepositoryProvider.groovy

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,13 +126,15 @@ abstract class RepositoryProvider {
126126
}
127127

128128
boolean hasCredentials() {
129-
getUser() && getPassword()
129+
return (getUser() && getPassword()) || getToken()
130130
}
131131

132132
String getUser() { config?.user }
133133

134134
String getPassword() { config?.password }
135135

136+
String getToken() { config?.token }
137+
136138
/**
137139
* @return The name of the source hub service e.g. github or bitbucket
138140
*/

0 commit comments

Comments
 (0)