MCPcopy Create free account
hub / github.com/crashappsec/github-analyzer / UsersWithout2FA

Function UsersWithout2FA

pkg/issue/issue.go:71–88  ·  view source on GitHub ↗
(
	usersLacking2FA []string,
	resources []resource.Resource,
)

Source from the content-addressed store, hash-verified

69}
70
71func 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
90func CollaboratorsWithout2FA(
91 usersLacking2FA []string,

Callers 1

Audit2FAMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected