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

Improve OpenSSF score #712

Open
nitrocode opened this issue Sep 3, 2024 · 4 comments
Open

Improve OpenSSF score #712

nitrocode opened this issue Sep 3, 2024 · 4 comments
Labels
feature New feature or request good first issue Good for newcomers

Comments

@nitrocode
Copy link

nitrocode commented Sep 3, 2024

What problem are you facing?

Adoption in a new organization

How could pre-commit-terraform help solve your problem?

Renovatebot includes an openssf score on every PR update for this repo. Due to low scores, this can irk developers and management.

Please consider improving the OpenSSF score of this repo. Current score is 6.7 which is not and could be better. The higher the score, the more objective integrity the community will have towards the project.

https://github.com/ossf/scorecard

https://securityscorecards.dev/viewer/?uri=github.com/antonbabenko/pre-commit-terraform

image

Some small improvements

  • Add OpenSSF Best Practices Badge
  • Use hadolint and shellcheck to pin dependencies
  • Token Permissions in .github/workflows/* would improve it a lot
  • etc

Some big improvements

  • Create official releases and sign them
  • etc
@nitrocode nitrocode added the feature New feature or request label Sep 3, 2024
@MaxymVlasov

This comment was marked as resolved.

@MaxymVlasov
Copy link
Collaborator

We definitely want 9+/10, but firstly I need to understand how to enable such scores for Renovate, as I never disable it in https://github.com/SpotOnInc/renovate-config/blob/main/default.template.json5

@nitrocode
Copy link
Author

Hi @MaxymVlasov, this is how I have enabled the scores in some orgs for renovate PRs

https://docs.renovatebot.com/presets-security/#securityopenssf-scorecard

@nitrocode
Copy link
Author

nitrocode commented Sep 4, 2024

Also the results may be better by adopting the GitHub action. This should get the branch protections

https://github.com/ossf/scorecard-action

@MaxymVlasov MaxymVlasov added the good first issue Good for newcomers label Sep 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants