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

How to use scorecard to scan a specific branch #881

Closed
bhuvi11 opened this issue Aug 23, 2021 · 6 comments
Closed

How to use scorecard to scan a specific branch #881

bhuvi11 opened this issue Aug 23, 2021 · 6 comments
Labels
duplicate This issue or pull request already exists kind/bug Something isn't working

Comments

@bhuvi11
Copy link

bhuvi11 commented Aug 23, 2021

Hello Team,

Is there an option to scan a specific branch using scorecard?

@bhuvi11 bhuvi11 added the kind/bug Something isn't working label Aug 23, 2021
@laurentsimon laurentsimon added the duplicate This issue or pull request already exists label Aug 23, 2021
@laurentsimon
Copy link
Contributor

laurentsimon commented Aug 23, 2021

duplicate from #575.
TL;DR: we're working on as part of our integration as a GitHub action.

If you're interested: what we will need is to implement this interface https://github.com/ossf/scorecard/blob/main/clients/repo_client.go#L46.

FYI @azeemsgoogle.

@naveensrinivasan
Copy link
Member

For now, the recommendation is to download the repo and check out the specific branch, and run scorecard on that.

@azeemshaikh38 Thoughts/recommendations?

@bhuvi11
Copy link
Author

bhuvi11 commented Sep 5, 2021

Hello @naveensrinivasan,

How can i do that? currently i see we can scan only URLs
how can i checkout ? can i scan .git repositories?

@azeemshaikh38
Copy link
Contributor

Currently, we don't support running on a specific/local branch. #462 unblocks the implementation of a client which can run on local files. We haven't started the implementation on this yet but might start in a few weeks.

@github-actions
Copy link

Stale issue message

@laurentsimon
Copy link
Contributor

laurentsimon commented Dec 28, 2021

We now have support for local repos SCORECARD_V4=1 scorecard ... --local=<folder>, but it's limited to a few checks that only use file content and not GitHub APIs. This will be released in v4.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists kind/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants