-
Notifications
You must be signed in to change notification settings - Fork 72
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
✨ Add more info to logs #155
Conversation
Codecov Report
@@ Coverage Diff @@
## main #155 +/- ##
=======================================
Coverage 74.80% 74.80%
=======================================
Files 2 2
Lines 127 127
=======================================
Hits 95 95
Misses 25 25
Partials 7 7 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Can we please also include this in the go
code?
IIUC the go code in out of sync already. Example: it's reading from the GITHUB_EVENT_PATH file https://github.com/ossf/scorecard-action/blob/main/options/options.go#L229 instead of using https://github.com/ossf/scorecard-action/blob/main/github/github.go#L115 I'll create an issue for sync'ing the code. |
+1 to this. It's easier to just do this as we go along. Even better, we can consider only adding updates to the Golang code instead of bash. |
I'll try that. I cannot add code only to go code though, because I have no idea if it does the same as entrypoint.sh. At least it should be used by our own repos to stage a release. |
done, PTAL |
please also advise how you'd like me to test. It used to be a file with the content, now it's an live API call to GitHub. I think I'll have to use the mock library; but tell me if you had something else in mind. |
Do you mean test Golang code? @rohankh532 is working on adding e2e tests similar to how we test bash script today so can skip that for now. And the bash changes should get tested using the e2e we have already. |
The code change in |
@laurentsimon Is this still valid? |
Let's close. |
Pull request was closed
Add more info to logs to help troubleshooting problems.
There's been a new issue on a problem that we've seen before #154
cc @naveensrinivasan let's add this to our list of unit tests once we've figured the problem.
closes #156