Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"ERROR: The requested resource requires user authentication" on every work item. #9

Closed
askpatrickw opened this issue Jul 13, 2024 · 1 comment · Fixed by #11
Closed

Comments

@askpatrickw
Copy link
Contributor

askpatrickw commented Jul 13, 2024

On every item I get this error message:

Copying work item 311 to {gh-org}/{gh-repo} on github
  Issue created: https://github.com/{gh-org}/{gh-repo}/issues/304
  comment created: https://github.com/{gh-org}/{gh-repo}/issues/304#issuecomment-2226658271
ERROR: The requested resource requires user authentication: https://dev.azure.com/{ado-org}/_apis/wit/workItems/311

It does create Issues in GH. Not sure what is causing this error or what the issue is.

@askpatrickw
Copy link
Contributor Author

I think the issue is that the README says an ADO PAT with READ access is needed, but in line 190 the script is writing to ADO to tag the work items.

https://github.com/joshjohanning/ado_workitems_to_github_issues/blob/main/ado_workitems_to_github_issues.ps1#L190

az boards work-item update --id "$workitemId" --fields "System.Tags=copied-to-github; $workitemTags" --discussion "$discussion" | Out-Null;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant