github / github/gh-gei

Better handling of denied permissions in `ado2gh inventory-report`

Open
#793 0 comments 0 reactions 0 assignees View on GitHub
task
Dominant language
C#
Stars
478
Forks
146
Avg merge
7d 21h
Merged PRs (30d)
2

Description

Even if the user of `ado2gh inventory-report` is a org admin, if they have been explicitly denied permissions on a repo the `inventory-report` command will fail (and exit) when it tries to retrieve the data for that repo.

![image](https://user-images.githubusercontent.com/1508559/215545916-7d237046-1b6f-48af-8228-c465a2b1c073.png)

We should detect this particular error case, skip the repo, but output a list of repos (as a warning) at the end of the log which were unable to be inventoried.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.