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

Fixed Issue #1555 #1557

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

Riddhimaan-Senapati
Copy link

@Riddhimaan-Senapati Riddhimaan-Senapati commented Jan 31, 2025

changes are in file osv-scanner/cmd/osv-scanner/internal/helper/helper.go

1.Added a global variable servePort with a default value of "8000"

2.Added a new CLI flag --port that allows users to customize the port number used when serving the HTML report

3.Removed the hardcoded port number from the ServeHTML function, using the global servePort variable instead

  1. The flag's Action function updates the global servePort variable when a custom port is specified

These changes allow users to specify a custom port using the --port flag when using the --serve option, while maintaining the default port 8000 if no custom port is specified.

1.Added a global variable servePort with a default value of "8000"

2.Added a new CLI flag --port that allows users to customize the port number used when serving the HTML report

3. Removed the hardcoded port number from the ServeHTML function, using the global servePort variable instead

4. The flag's Action function updates the global servePort variable when a custom port is specified

These changes allow users to specify a custom port using the --port flag when using the --serve option, while maintaining the default port 8000 if no custom port is specified.
Copy link

google-cla bot commented Jan 31, 2025

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@Riddhimaan-Senapati
Copy link
Author

Riddhimaan-Senapati commented Jan 31, 2025

@jtt @abhisek @calebbrown @iurisilvio Can anyone of you review my PR? I have also just signed the Google CLA. Excited to begin contributing to this repository.

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.

1 participant