Affected by GO-2025-4261
and 9 other vulnerabilities
GO-2025-4261 : Gitea allows attackers to add attachments with forbidden file extensions in code.gitea.io/gitea
GO-2026-4362 : Gitea improperly exposes issue and pull request titles in code.gitea.io/gitea
GO-2026-4363 : Gitea does not properly validate repository ownership when deleting Git LFS locks in code.gitea.io/gitea
GO-2026-4364 : Gitea does not properly validate repository ownership when linking attachments to releases in code.gitea.io/gitea
GO-2026-4365 : Gitea may send release notification emails for private repositories to users whose access has been revoked in code.gitea.io/gitea
GO-2026-4366 : Gitea does not properly verify authorization when canceling scheduled auto-merges via the web interface in code.gitea.io/gitea
GO-2026-4367 : Gitea has improper access control for uploaded attachments in code.gitea.io/gitea
GO-2026-4368 : Gitea improperly exposes issue titles and repository names through previously started stopwatches in code.gitea.io/gitea
GO-2026-4369 : Gitea does not properly validate ownership when toggling OpenID URI visibility in code.gitea.io/gitea
GO-2026-4370 : Gitea does not properly validate project ownership in organization project operations in code.gitea.io/gitea
Discover Packages
code.gitea.io/gitea
modules
git
foreachref
package
Version:
v1.25.3
Opens a new window with list of versions in this module.
Published: Dec 18, 2025
License: MIT
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 1
Opens a new window with list of known importers.
Documentation
Documentation
¶
Format supports specifying and parsing an output format for 'git
for-each-ref'. See See git-for-each-ref(1) for available fields.
NewFormat creates a forEachRefFormat using the specified fieldNames. See
git-for-each-ref(1) for available fields.
Flag returns a for-each-ref --format flag value that captures the fieldNames.
Parser returns a Parser capable of parsing 'git for-each-ref' output produced
with this Format.
Parser parses 'git for-each-ref' output according to a given output Format.
NewParser creates a 'git for-each-ref' output parser that will parse all
references in the provided Reader. The references in the output are assumed
to follow the specified Format.
Err returns the latest encountered parsing error.
Next returns the next reference as a collection of key-value pairs. nil
denotes EOF but is also returned on errors. The Err method should always be
consulted after Next returning nil.
It could, for example return something like:
{ "objecttype": "tag", "refname:short": "v1.16.4", "object": "f460b7543ed500e49c133c2cd85c8c55ee9dbe27" }
Source Files
¶
Click to show internal directories.
Click to hide internal directories.