Affected by GO-2025-4261
and 1 other vulnerabilities
GO-2025-4261 : Gitea allows attackers to add attachments with forbidden file extensions in code.gitea.io/gitea
GO-2026-6080 : Gitea: Branch Protection Bypass via PR Retargeting Preserves Stale `official` Approval Flag in go-gitea/gitea
Discover Packages
code.gitea.io/gitea
modules
analyze
package
Version:
v1.26.4
Opens a new window with list of versions in this module.
Published: Jun 21, 2026
License: MIT
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
GetCodeLanguage detects code language based on file name and content
It can be slow when the content is used for detection
IsGenerated returns whether or not path is a generated path.
IsVendor returns whether the path is a vendor path.
It uses go-enry's IsVendor function but overrides its detection for certain
special cases that shouldn't be marked as vendored in the diff view.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.