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

scan: ability to local directory #54

Open
Dentrax opened this issue Jul 7, 2022 · 4 comments
Open

scan: ability to local directory #54

Dentrax opened this issue Jul 7, 2022 · 4 comments

Comments

@Dentrax
Copy link

Dentrax commented Jul 7, 2022

For example:

$ chain-bench scan .

I think currently passing --repository-url is a must.

@Dentrax Dentrax changed the title Ability to scan local directory scan: ability to local directory Jul 7, 2022
@morwn
Copy link
Collaborator

morwn commented Jul 10, 2022

Hi @Dentrax, Could you please elaborate on the motivation and the expected behaviors?
Just to mention that most of the checks require API data fetching.

@codykenb
Copy link

If you have a git repo checked out locally to disk, can you scan that repo locally? ( without connecting to a git server.. )

@Dentrax
Copy link
Author

Dentrax commented Aug 4, 2022

Sorry for the lack of detail - I was rushing up to something, so I didn't have time to explain the details. 🙏


Imagine how official $ gh tool works. I can easily play with gh without passing additional --repository-url <REPOSITORY_URL> --access-token <TOKEN> flags. It somehow automatically recognize the URL and gets the token from ~/.config/gh/hosts.yml file.

My idea is here to implement similar UX (auth parameterless) to scan remote repository. It's not about the "scanning repo locally".

@krol3
Copy link

krol3 commented Aug 26, 2022

@Dentrax you're suggesting to improve the experience to support the gihub config ~/.config/gh/hosts.yml of the tool "gh" , is another use case of your proposal ? or is only an improvement to gh?

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

No branches or pull requests

4 participants