-
-
Notifications
You must be signed in to change notification settings - Fork 2
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 Compliance check: githubOrgMFA
#43
Comments
After some research, it seems like
Main logic:
Logic Edge Cases (multiple GitHub organizations):
Alerts:
Tasks:
|
Both PRs are landed, so this check is considered completed at this stage 🥳 |
githubOrgMFA
githubOrgMFA
githubOrgMFA
How the Check Works
After some research, it seems like
two_factor_requirement_enabled
is the best field that can provide us with the information from the tablegithub_organizations
, which we populate from the GitHub API.Main logic:
true
, it is considered aspassed
.false
, it is considered asfailed
.NULL
, it is considered asunknown
.Logic Edge Cases (multiple GitHub organizations):
failed
organization, the global check is consideredfailed
.unknown
organization (without anyfailed
ones), the global check is consideredunknown
.passed
, the global consideration ispassed
.Alerts:
failed
organizations in the project. Ignore other scenarios.Tasks:
Pending Tasks
compliance_checks
row with the following fields:how_to_url
,implementation_status
,implementation_type
andimplementation_details_reference
npm run db:migrate
andnpm run db:rollback
npm run db:generate-schema
src/checks/validators/index.js
src/checks/complianceChecks
isCheckApplicableToProjectCategory
)severity
value is well calculated (usegetSeverityFromPriorityGroup
)compliance_checks_alerts
table when is needed.compliance_checks_tasks
table when is needed.compliance_checks_results
table.check run --name {check_code_name}
and verify the changes in the database. Update the seed script if needed (npm run db:seed
)https://openjs-security-program-standards.netlify.app/details/{check_code_name}
The text was updated successfully, but these errors were encountered: