-
Notifications
You must be signed in to change notification settings - Fork 70
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
Scorecard action fails - private repo with 0 commits #134
Comments
seems to be what's failing, I think it has to do with the token ossf/scorecard#1097 |
What is required here to make it run? Any workarounds? |
Need to be able to reproduce the problem. I suppose no commit means no tarball, hence why it's failing. If that's the case, it's a scorecard issue rather than a scorecard action issue. wdut? |
I just created a token for this and I am sure it is not expired.
I agree. @azeemshaikh38 I think this scorecard issue. Thoughts? |
Failing to get tarball itself is an issue we should investigate, but also not able to fetch tarball will not result in 0 commits. Makes me feel like this is a token permission problem. @naveensrinivasan could you confirm that the token you are using has the right permissions? Note that you'll need to give the token full permissions to read your private repos. |
@azeemshaikh38 Here is the permission also I am not using the standard GitHub token |
Looks like the Scorecard run is now succeeding? - https://github.com/ossf-tests/ossf-scorecard-action-private-repo-tests/runs/5486754792?check_suite_focus=true The new error has to do with enabling Advanced Security - https://github.blog/changelog/2021-01-07-github-advanced-security-can-now-be-enabled-disabled-at-the-repository-or-organization-level/ |
Good find, I've added this to the list of doc update we need to do #80 |
Might also want to include in documentation that private repo PATs require more scope than just |
it's included by default, AFAIK |
I think we need the |
We can't do that for private repo. We need to buy that feature |
+1 on verifying this, looks like you may be right and that |
I have an org to test which has access to enterprise for private repo: https://github.com/test-organization-ls. Tell me a repo name you want, I'll create it |
scorecard-action-private-repo-tests |
done https://github.com/test-organization-ls/scorecard-action-private-repo-tests |
OK, I will wait for it. |
OK, I was able to create a scorecard action in a private repository. https://github.com/test-organization-ls/scorecard-action-private-repo-tests If the action fails it create an issue in scorecard-action repository
|
This is cool!! |
The scorecard actions is failing for https://github.com/ossf-tests/ossf-scorecard-action-private-repo-tests which have
0
commits.This is a private repo.
Scope of the token
The text was updated successfully, but these errors were encountered: