Skip to content

Conversation

@warku123
Copy link

What does this PR do?
Add an SR votes monitor and push the results to Slack channel

Why are these changes required?
To get SR votes information ontime

This PR has been tested by:

  • Manual Testing

Follow up

Extra details


body, err := io.ReadAll(resp.Body)
if err != nil {
return ""
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's better to handle error messages by writing them to logs.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Already add logs file in logs/sr_monitor.log


go 1.25.5

require github.com/joho/godotenv v1.5.1

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please check the security of this package

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This package is the de-facto standard for environment variable management in the Go community (10k+ Stars), repo: https://github.com/joho/godotenv. Its logic is minimal and transparent (reading local files only).

I've scanned the project using the official Go vulnerability tool govulncheck, and no vulnerabilities were detected in this package.

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

Successfully merging this pull request may close these issues.

3 participants