Skip to content

Commit 4d71b7a

Browse files
committed
removed guest permission from downloading repo
1 parent 15fe6e4 commit 4d71b7a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ if (!shell.which("git")) {
5151
* defining our needs.
5252
*/
5353
const pagination = 100; // currently maximum gitlab pagination supports.
54-
const defaultAddress = `/api/v4/projects?simple=true&membership=true&pagination=keyset&order_by=id&sort=asc&per_page=${pagination}`;
54+
const minAccessLevel = 20; // guests not allowed to download repo.
55+
const defaultAddress = `/api/v4/projects?simple=true&membership=true&pagination=keyset&order_by=id&sort=asc&per_page=${pagination}&min_access_level=${minAccessLevel}`;
5556
const bar = new cliProgress.SingleBar(
5657
{
5758
hideCursor: true,

0 commit comments

Comments
 (0)