Skip to content

Commit 5d72afd

Browse files
committed
fix scope
1 parent f53c19a commit 5d72afd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ func getPAT(organization, accessToken string) (PatToken, error) {
147147
// sadly https://github.com/microsoft/azure-devops-go-api doesn't have this function
148148
url := fmt.Sprintf("https://vssps.dev.azure.com/%s/_apis/tokens/pats?api-version=7.1-preview.1", organization)
149149
j := map[string]any{
150-
"scopes": "vso.code_write vso.packaging",
150+
"scope": "vso.code_write vso.packaging",
151151
}
152152
body, err := json.Marshal(j)
153153
if err != nil {

0 commit comments

Comments
 (0)