Skip to content

Commit

Permalink
fix scope
Browse files Browse the repository at this point in the history
  • Loading branch information
hickford committed Aug 2, 2023
1 parent f53c19a commit 5d72afd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ func getPAT(organization, accessToken string) (PatToken, error) {
// sadly https://github.com/microsoft/azure-devops-go-api doesn't have this function
url := fmt.Sprintf("https://vssps.dev.azure.com/%s/_apis/tokens/pats?api-version=7.1-preview.1", organization)
j := map[string]any{
"scopes": "vso.code_write vso.packaging",
"scope": "vso.code_write vso.packaging",
}
body, err := json.Marshal(j)
if err != nil {
Expand Down

0 comments on commit 5d72afd

Please sign in to comment.