Merge pull request #10239 from getndazn/fix/github-workflow-scope

replacing workflow:write scope with workflow, workflow:write is invalid.
This commit is contained in:
Johan Haals
2022-03-18 10:40:03 +01:00
committed by GitHub
3 changed files with 5 additions and 5 deletions
@@ -153,11 +153,11 @@ describe('ScmAuth', () => {
githubAuth.getCredentials({
url: 'http://example.com',
additionalScope: {
customScopes: { github: ['org:read', 'workflow:write'] },
customScopes: { github: ['org:read', 'workflow'] },
},
}),
).resolves.toMatchObject({
token: 'repo read:org read:user org:read workflow:write',
token: 'repo read:org read:user org:read workflow',
});
const gitlabAuth = ScmAuth.forGitlab(mockAuthApi);