Skip to content

Commit c36c283

Browse files
committed
feat: add read:packages / write:packages to scopes
In preparation for github-npm-registry plugin
1 parent 2df4558 commit c36c283

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/lib/github.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,16 @@ async function createAuthorization(info) {
3636
auth: info.github,
3737
headers: {'User-Agent': 'semantic-release', 'X-GitHub-OTP': info.github.code},
3838
body: {
39-
scopes: ['repo', 'read:org', 'user:email', 'repo_deployment', 'repo:status', 'write:repo_hook'],
39+
scopes: [
40+
'repo',
41+
'read:org',
42+
'user:email',
43+
'repo_deployment',
44+
'repo:status',
45+
'write:repo_hook',
46+
'write:packages',
47+
'read:packages',
48+
],
4049
note: `semantic-release${node}`,
4150
},
4251
});

0 commit comments

Comments
 (0)