Affected by GO-2022-0369
and 20 other vulnerabilities
GO-2022-0369 : Gogs vulnerable to improper PAM authorization handling in gogs.io/gogs
GO-2022-0473 : Cross site scripting via cookies in gogs in gogs.io/gogs
GO-2022-0483 : Cross-site Scripting vulnerability in repository issue list in Gogs in gogs.io/gogs
GO-2022-0554 : Unrestricted Upload of File with Dangerous Type in Gogs in gogs.io/gogs
GO-2022-0556 : OS Command Injection in file editor in Gogs in gogs.io/gogs
GO-2022-0562 : Path Traversal in Git HTTP endpoints in Gogs in gogs.io/gogs
GO-2022-0570 : Path Traversal in file editor on Windows in Gogs in gogs.io/gogs
GO-2022-0583 : Server-Side Request Forgery in gogs webhook in gogs.io/gogs
GO-2022-1060 : Gogs vulnerable to Cross-site Scripting in gogs.io/gogs
GO-2023-1596 : Gogs OS Command Injection vulnerability in gogs.io/gogs
GO-2024-3275 : Unpatched Remote Code Execution in Gogs in gogs.io/gogs
GO-2024-3355 : Remote Command Execution in file editing in gogs in gogs.io/gogs
GO-2024-3356 : Path Traversal in file update API in gogs in gogs.io/gogs
GO-2025-3776 : Gogs allows deletion of internal files which leads to remote command execution in gogs.io/gogs
GO-2025-3778 : Gogs XSS allowed by stored call in PDF renderer in gogs.io/gogs
GO-2025-4225 : Gogs vulnerable to a bypass of CVE-2024-55947 in gogs.io/gogs
Discover Packages
gogs.io/gogs
internal
testutil
package
Version:
v0.12.0
Opens a new window with list of versions in this module.
Published: Aug 22, 2020
License: MIT
Opens a new window with license information.
Imports: 14
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
InitNoopLogger is a init function to initialize a noop logger.
AssertGolden compares what's got and what's in the golden file. It updates
the golden file on-demand. It does nothing when the runtime is "windows".
Exec executes "go test" on given helper with supplied environment variables.
It is useful to mock "os/exec" functions in tests. When succeeded, it returns
the result produced by the test helper.
The test helper should:
Use WantHelperProcess function to determine if it is being called in helper mode.
Call fmt.Fprintln(os.Stdout, ...) to print results for the main test to collect.
Update returns true if update regex matches given test name.
func WantHelperProcess() bool
WantHelperProcess returns true if current process is in helper mode.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.