| 88 | } |
| 89 | |
| 90 | func CollaboratorsWithout2FA( |
| 91 | usersLacking2FA []string, |
| 92 | resources []resource.Resource, |
| 93 | ) Issue { |
| 94 | return Issue{ |
| 95 | ID: AUTH_2FA_COLLABORATOR_DISABLED, |
| 96 | Name: AvailableChecks[AUTH_2FA_COLLABORATOR_DISABLED], |
| 97 | Severity: severity.Low, |
| 98 | Category: category.Authentication, |
| 99 | CWEs: []int{308}, |
| 100 | Description: fmt.Sprintf( |
| 101 | "The following collaborators have not enabled 2FA: %s", |
| 102 | strings.Join(usersLacking2FA, ", "), |
| 103 | ), |
| 104 | Resources: resources, |
| 105 | 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", |
| 106 | } |
| 107 | } |
| 108 | |
| 109 | func InsecureWebhookPayloadURL(url string) Issue { |
| 110 | return Issue{ |