-
Notifications
You must be signed in to change notification settings - Fork 13
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
Add OSPS Baseline Level 1 rules. #265
base: main
Are you sure you want to change the base?
Conversation
b3b647a
to
50f2fb9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm assuming a future PR will add a profile definition for maturity level 1?
Apache License | ||
Version 2.0, January 2004 | ||
http://www.apache.org/licenses/ | ||
|
||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION | ||
|
||
... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This shouldn't be a license file, this should say something like:
Apache License | |
Version 2.0, January 2004 | |
http://www.apache.org/licenses/ | |
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION | |
... | |
# Contributing to Foo | |
We welcome contributions, and the rest of this doc is slap-dash! Sorry! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We're just checking for existence, not content.
I'm not sure we want to check contents as well, might be tricky.
...y-baseline/rule-types/github/osps-do-02.testdata/contributing_file_no_extension/CONTRIBUTING
Outdated
Show resolved
Hide resolved
security-baseline/rule-types/github/osps-do-02.testdata/contributing_folder/CONTRIBUTING/myfile
Outdated
Show resolved
Hide resolved
security-baseline/rule-types/github/osps-do-02.testdata/no_data/foo
Outdated
Show resolved
Hide resolved
Yes, sorry for the confusing branch name. |
9525df8
to
9fb924a
Compare
@evankanderson our good @teodor-yanev was quicker than I was and got the profile merged earlier today. |
This change adds all currently implemented rule types for OSPS Baseline Level 1. Some rules were copy-pasted from rules like e.g. `branch_protection_allow_deletions` in order to (a) be able to change them independently and (b) change the name to something descriptive in the scope of Security Baseline. We generally do not foster this, but in this case we deemed simplicity was preferable to avoiding duplication. Along the rules themselves, tests were added to new, existing ones, and their copies. Fixes stacklok/minder-stories#198
9fb924a
to
ef919c5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are a couple places where we use a git
ingest (which requires cloning the repo), where we should prefer using a REST ingest. Other than that, these LGTM (or at least sufficient to merge).
If you can approve the 4 suggestions, I'm happy to merge.
This change adds all currently implemented rule types for OSPS Baseline Level 1.
Some rules were copy-pasted from rules like
e.g.
branch_protection_allow_deletions
in order to (a) be able to change them independently and (b) change the name to something descriptive in the scope of Security Baseline. We generally do not foster this, but in this case we deemed simplicity was preferable to avoiding duplication.Along the rules themselves, tests were added to new, existing ones, and their copies.
Fixes stacklok/minder-stories#198