| 69 | } |
| 70 | |
| 71 | func UsersWithout2FA( |
| 72 | usersLacking2FA []string, |
| 73 | resources []resource.Resource, |
| 74 | ) Issue { |
| 75 | return Issue{ |
| 76 | ID: AUTH_2FA_USER_DISABLED, |
| 77 | Name: AvailableChecks[AUTH_2FA_USER_DISABLED], |
| 78 | Severity: severity.Low, |
| 79 | Category: category.Authentication, |
| 80 | CWEs: []int{308}, |
| 81 | Description: fmt.Sprintf( |
| 82 | "The following users have not enabled 2FA: %s", |
| 83 | strings.Join(usersLacking2FA, ", "), |
| 84 | ), |
| 85 | Resources: resources, |
| 86 | Remediation: "Please see https://docs.github.com/en/authentication/securing-your-account-with-two-factor-authentication-2fa/configuring-two-factor-authentication for steps on how to configure 2FA for individual accounts", |
| 87 | } |
| 88 | } |
| 89 | |
| 90 | func CollaboratorsWithout2FA( |
| 91 | usersLacking2FA []string, |