Skip to content

Commit 46cc5ab

Browse files
committed
changed from gitlab-ci-token to oauth2
1 parent 5b0f651 commit 46cc5ab

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

lib/utils.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,7 @@ class Utils {
7272
* @param {string} httpUrlToRepo http url of repo
7373
*/
7474
generateRepoUrl(httpUrlToRepo) {
75-
return httpUrlToRepo.replace(
76-
"https://",
77-
`https://gitlab-ci-token:${this.token}@`
78-
);
75+
return httpUrlToRepo.replace("https://", `https://oauth2:${this.token}@`);
7976
}
8077
}
8178

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "mmd-gitlab-backuper",
33
"description": "a package to backup from all projects that you have on gitlab",
4-
"version": "1.4.0",
4+
"version": "1.4.1",
55
"main": "lib/index.js",
66
"license": "MIT",
77
"author": {

0 commit comments

Comments
 (0)