-
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
"The 'repo_token' variable is empty." on PR Runs of Scorecard Action #109
Comments
Thanks for the report.
We will try to add PR support in the next release. |
@laurentsimon any idea on when you might add PR support? I will be blocking dependabot updates (i.e. this PR) for this action until I can safely merge the latest without breaking our existing behavior. |
We are waiting to hear back from GitHub team for better support for the default cc @josepalafox |
Why is that necessary? As you mentioned in your (1) above no token should be necessary since you'd just be querying state, not publishing anything for PRs. |
token is not necessary for scorecard to run, but the workflow (example today) still exposes it to the code running in the PR. It's low risk (scorecard does not run external code unless someone finds a bug), but we're trying to follow best practices. |
ebpf-for-windows project is now also blocked updating beyond 1.0.3 due to this issue. |
@dthaler have you tested with v1.0.4? |
Yes, we see intermittant failures, such as in https://github.com/microsoft/ebpf-for-windows/runs/5726574449?check_suite_focus=true (whereas https://github.com/microsoft/ebpf-for-windows/runs/5725496349?check_suite_focus=true passed referencing the same commit) |
Great finding, intermittent problems, that's really interesting. Could you use this PR's branch (my personal repo) to add logs to the action? I think we may be able to point out the problems with this additional log - just this file needs to be updated https://github.com/ossf/scorecard-action/pull/155/files#diff-6f9d41d046756f0ddc2fcee0626bdb50100d12b88f293734eff742818e03efa2 |
FYI, in the ebpf-for-windows project, I used |
@laurentsimon @naveensrinivasan fyi good testcase to add to our e2e tests - workflows which have |
I'l spend some time to reproduce the problem soon. |
Now that v2.0 is out, is there any progress on fixing this PR? |
Not officially supported yet, but it should work if you use
I will create a PR to have the equivalent of |
I believe #71 regressed PR runs of scorecard, where we don't actually need the repo_token because we aren't pushing the results, just checking them:
https://github.com/microsoft/msquic/runs/5259593124?check_suite_focus=true
The text was updated successfully, but these errors were encountered: