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

go code out of sync with entrypoint.sh #156

Closed
laurentsimon opened this issue Mar 22, 2022 · 7 comments
Closed

go code out of sync with entrypoint.sh #156

laurentsimon opened this issue Mar 22, 2022 · 7 comments
Assignees
Projects

Comments

@laurentsimon
Copy link
Contributor

See #155 (comment):

  1. this PR 🐛 Fix null is fork in script #98
  2. this ✨ Add more info to logs #155
@laurentsimon
Copy link
Contributor Author

cc @justaugustus

@laurentsimon
Copy link
Contributor Author

Also this PR #335

@laurentsimon
Copy link
Contributor Author

@azeemsgoogle do you know if these have already been resolved?

@azeemshaikh38
Copy link
Contributor

Changes already merged into Bash (#98) should be resolved by #489. The other issues mentioned are still WIP so I'm not sure if those changes have been resolved/are in sync with Golang.

@laurentsimon
Copy link
Contributor Author

laurentsimon commented Jun 16, 2022

IFAICT, setRepoInfo is out of sync with the bash script. It uses curl https://api.github.com/repos/"$GITHUB_REPOSITORY" in the bash but uses cat $GITHUB_EVENT_PATH in the golang.

This was a source of problems on private repos, e.g. #75

Also, I see that setPublishResults() uses o.PublishResults = o.PublishResults && !privateRepo. If an err is reported in strconv.ParseBool(o.PrivateRepoStr), privateRepo will default to false and publish would be set to true. I think we should err on the safe side: when we cannot parse, we should fail.

@azeemshaikh38
Copy link
Contributor

You are right, I see the failure here - https://github.com/ossf-tests/scorecard-action/runs/6996850405?check_suite_focus=true. It says refs/heads/main not supported, I'm assuming this is due to GITHUB_EVENT_PATH not being set.

re: setPublishResults(), ack. Will send out a PR to fix this.

@azeemshaikh38
Copy link
Contributor

Closing this issue. Golang code is now in sync with Bash.

Scorecard automation moved this from To do to Done Jul 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging a pull request may close this issue.

3 participants