microsoft / microsoft/OSSGadget

oss-health doesn't work for github repositories

Open
#421 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C#
Stars
371
Forks
58
PR merge metrics
No merged PRs in 30d

Description

Although the oss-health package provides pkg:github/Microsoft/DevSkim as an example, this example doesn't appear to work:

root@c9c9c62c8baf:~# oss-health pkg:github/Microsoft/DevSkim

   ____   _____ _____    _____           _            _
  / __ \ / ____/ ____|  / ____|         | |          | |
 | |  | | (___| (___   | |  __  __ _  __| | __ _  ___| |_
 | |  | |\___ \\___ \  | | |_ |/ _` |/ _` |/ _` |/ _ \ __|
 | |__| |____) |___) | | |__| | (_| | (_| | (_| |  __/ |_
  \____/|_____/_____/   \_____|\__,_|\__,_|\__, |\___|\__|
                                            __/ |
                                           |___/          
OSS Gadget - oss-health 0.0.0+23aca19540 - github.com/Microsoft/OSSGadget
INFO  - No repositories were found after searching metadata.
root@c9c9c62c8baf:~# cat oss-gadget.log 
2023/05/19 17:14:59.264|DEBUG|Could not switch output from console to file |
2023/05/19 17:14:59.283|TRACE|ResolvePackageLibraryAsync(pkg:github/microsoft/devskim) |
2023/05/19 17:14:59.288|DEBUG|Searching for source code for: pkg:github/microsoft/devskim |
2023/05/19 17:14:59.291|TRACE|IdentifySourceRepository(pkg:github/microsoft/devskim) |
2023/05/19 17:14:59.291|TRACE|ExtractRankedSourceRepositories(pkg:github/microsoft/devskim) |
2023/05/19 17:14:59.291|INFO|No repositories were found after searching metadata. |
2023/05/19 17:14:59.293|DEBUG|Cannot compute Health for pkg:github/microsoft/devskim |

GITHUB_ACCESS_TOKEN is set with a valid value.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the failure with the oss-health pkg:github/Microsoft/DevSkim command and inspect the logged ResolvePackageLibraryAsync, IdentifySourceRepository, and ExtractRankedSourceRepositories entry points. Trace why metadata lookup returns no repositories, then verify that the command resolves the repository and computes health for this package.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, github
Domain
cli, devtools
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.