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

Contribute scraper script for compiler options hardening guide… #549

Conversation

mayank-ramnani
Copy link
Contributor

… to convert options to machine readable format

Adds python script to scrape recommended compiler options from the OpenSSF Compiler Options Hardening Guide HTML page. Scrapes the webpage and stores the options in JSON format in compiler-options.json file in the execution directory.

Relevant discussion in #490

@mayank-ramnani mayank-ramnani changed the title Contribute python scraper script for compiler options hardening guide… Contribute scraper script for compiler options hardening guide… Jun 27, 2024
@gkunz
Copy link
Contributor

gkunz commented Jun 27, 2024

Thank you, @mayank-ramnani, for the contribution. How about placing this in a separate sub-directory with a bit of documentation of its own, in particular a list of required dependencies (or a project file)?

@mayank-ramnani
Copy link
Contributor Author

Thank you, @mayank-ramnani, for the contribution. How about placing this in a separate sub-directory with a bit of documentation of its own, in particular a list of required dependencies (or a project file)?

That's a good idea, thank you.
I'll make this change soon to mention the dependencies and put the script in a sub-directory.

@mayank-ramnani mayank-ramnani force-pushed the contribute-scraper-for-compiler-options-hardening-guide branch 3 times, most recently from 58aa1c5 to 41cbb96 Compare July 1, 2024 05:10
Copy link
Contributor

@thomasnyman thomasnyman left a comment

Choose a reason for hiding this comment

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

lgtm

Copy link
Contributor

@gkunz gkunz left a comment

Choose a reason for hiding this comment

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

looks good to me

… to convert options to machine readable format

Signed-off-by: mayank-ramnani <mayankr99@gmail.com>
@mayank-ramnani mayank-ramnani force-pushed the contribute-scraper-for-compiler-options-hardening-guide branch from 5bd0fea to b0bad45 Compare August 8, 2024 23:19
@thomasnyman thomasnyman merged commit ec69a01 into ossf:main Aug 9, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants