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

Function Org2FADisabled

pkg/issue/issue.go:51–69  ·  view source on GitHub ↗
(org string)

Source from the content-addressed store, hash-verified

49}
50
51func 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
71func UsersWithout2FA(
72 usersLacking2FA []string,

Callers 1

Audit2FAMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected