| 49 | } |
| 50 | |
| 51 | func Org2FADisabled(org string) Issue { |
| 52 | return Issue{ |
| 53 | ID: AUTH_2FA_ORG_DISABLED, |
| 54 | Name: AvailableChecks[AUTH_2FA_ORG_DISABLED], |
| 55 | Severity: severity.Medium, |
| 56 | Category: category.Authentication, |
| 57 | Description: fmt.Sprintf( |
| 58 | "Two-factor authentication requirement in organization '%s' is disabled", |
| 59 | org, |
| 60 | ), |
| 61 | Resources: []resource.Resource{ |
| 62 | { |
| 63 | ID: org, |
| 64 | Kind: resource.Organization, |
| 65 | }, |
| 66 | }, |
| 67 | Remediation: "Please see https://docs.github.com/en/organizations/keeping-your-organization-secure/managing-two-factor-authentication-for-your-organization/requiring-two-factor-authentication-in-your-organization for steps on how to configure 2FA for your organization", |
| 68 | } |
| 69 | } |
| 70 | |
| 71 | func UsersWithout2FA( |
| 72 | usersLacking2FA []string, |