Skip to content

Enforce two-factor auth (2FA: TOTP or WebAuthn) #29250

Enforce two-factor auth (2FA: TOTP or WebAuthn)

Enforce two-factor auth (2FA: TOTP or WebAuthn) #29250

Triggered via pull request April 12, 2025 08:25
Status Failure
Total duration 7m 42s
Artifacts

pull-compliance.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

30 errors
lint-go-windows: services/auth/source/smtp/assert_interface_test.go#L21
undefined: auth_model.SourceSettable (typecheck)
lint-go-windows: services/auth/source/pam/assert_interface_test.go#L18
undefined: auth_model.SourceSettable (typecheck)
lint-go-windows: services/auth/source/oauth2/source_sync_test.go#L21
unknown field authSource in struct literal of type Source (typecheck)
lint-go-windows: services/auth/source/oauth2/assert_interface_test.go#L17
undefined: auth_model.SourceSettable (typecheck)
lint-go-windows: services/auth/source/oauth2/source_sync_test.go#L21
unknown field authSource in struct literal of type Source) (typecheck)
lint-go-windows: services/auth/source/oauth2/assert_interface_test.go#L9
could not import code.gitea.io/gitea/services/auth/source/oauth2 (-: # code.gitea.io/gitea/services/auth/source/oauth2 [code.gitea.io/gitea/services/auth/source/oauth2.test]
lint-go-windows: services/auth/source/ldap/assert_interface_test.go#L24
undefined: auth_model.SourceSettable (typecheck)
lint-go-windows: services/auth/source/ldap/assert_interface_test.go#L18
undefined: auth.LocalTwoFASkipper
lint-go-windows: models/auth/source_test.go#L51
cannot use &TestSource{…} (value of type *TestSource) as "code.gitea.io/gitea/models/auth".Config value in struct literal: *TestSource does not implement "code.gitea.io/gitea/models/auth".Config (missing method SetAuthSource) (typecheck)
lint-go-windows: models/auth/source_test.go#L45
cannot use new(TestSource) (value of type *TestSource) as "code.gitea.io/gitea/models/auth".Config value in argument to auth_model.RegisterTypeConfig: *TestSource does not implement "code.gitea.io/gitea/models/auth".Config (missing method SetAuthSource)
lint-go-gogit: services/auth/source/smtp/assert_interface_test.go#L21
undefined: auth_model.SourceSettable (typecheck)
lint-go-gogit: services/auth/source/pam/assert_interface_test.go#L18
undefined: auth_model.SourceSettable (typecheck)
lint-go-gogit: services/auth/source/oauth2/source_sync_test.go#L21
unknown field authSource in struct literal of type Source (typecheck)
lint-go-gogit: services/auth/source/oauth2/assert_interface_test.go#L17
undefined: auth_model.SourceSettable (typecheck)
lint-go-gogit: services/auth/source/oauth2/source_sync_test.go#L21
unknown field authSource in struct literal of type Source) (typecheck)
lint-go-gogit: services/auth/source/oauth2/assert_interface_test.go#L9
could not import code.gitea.io/gitea/services/auth/source/oauth2 (-: # code.gitea.io/gitea/services/auth/source/oauth2 [code.gitea.io/gitea/services/auth/source/oauth2.test]
lint-go-gogit: services/auth/source/ldap/assert_interface_test.go#L24
undefined: auth_model.SourceSettable (typecheck)
lint-go-gogit: services/auth/source/ldap/assert_interface_test.go#L18
undefined: auth.LocalTwoFASkipper
lint-go-gogit: models/auth/source_test.go#L51
cannot use &TestSource{…} (value of type *TestSource) as "code.gitea.io/gitea/models/auth".Config value in struct literal: *TestSource does not implement "code.gitea.io/gitea/models/auth".Config (missing method SetAuthSource) (typecheck)
lint-go-gogit: models/auth/source_test.go#L45
cannot use new(TestSource) (value of type *TestSource) as "code.gitea.io/gitea/models/auth".Config value in argument to auth_model.RegisterTypeConfig: *TestSource does not implement "code.gitea.io/gitea/models/auth".Config (missing method SetAuthSource)
lint-backend: services/auth/source/smtp/assert_interface_test.go#L21
undefined: auth_model.SourceSettable (typecheck)
lint-backend: services/auth/source/pam/assert_interface_test.go#L18
undefined: auth_model.SourceSettable (typecheck)
lint-backend: services/auth/source/oauth2/source_sync_test.go#L21
unknown field authSource in struct literal of type Source (typecheck)
lint-backend: services/auth/source/oauth2/assert_interface_test.go#L17
undefined: auth_model.SourceSettable (typecheck)
lint-backend: services/auth/source/oauth2/source_sync_test.go#L21
unknown field authSource in struct literal of type Source) (typecheck)
lint-backend: services/auth/source/oauth2/assert_interface_test.go#L9
could not import code.gitea.io/gitea/services/auth/source/oauth2 (-: # code.gitea.io/gitea/services/auth/source/oauth2 [code.gitea.io/gitea/services/auth/source/oauth2.test]
lint-backend: services/auth/source/ldap/assert_interface_test.go#L24
undefined: auth_model.SourceSettable (typecheck)
lint-backend: services/auth/source/ldap/assert_interface_test.go#L18
undefined: auth.LocalTwoFASkipper
lint-backend: models/auth/source_test.go#L51
cannot use &TestSource{…} (value of type *TestSource) as "code.gitea.io/gitea/models/auth".Config value in struct literal: *TestSource does not implement "code.gitea.io/gitea/models/auth".Config (missing method SetAuthSource) (typecheck)
lint-backend: models/auth/source_test.go#L45
cannot use new(TestSource) (value of type *TestSource) as "code.gitea.io/gitea/models/auth".Config value in argument to auth_model.RegisterTypeConfig: *TestSource does not implement "code.gitea.io/gitea/models/auth".Config (missing method SetAuthSource)