Affected by GO-2024-2998
and 1 other vulnerabilities
GO-2024-2998 : Woodpecker's custom environment variables allow to alter execution flow of plugins in go.woodpecker-ci.org/woodpecker
GO-2024-2999 : Woodpecker's custom workspace allow to overwrite plugin entrypoint executable in go.woodpecker-ci.org/woodpecker
Discover Packages
go.woodpecker-ci.org/woodpecker/v2
server
router
middleware
package
Version:
v2.1.1
Opens a new window with list of versions in this module.
Published: Dec 27, 2023
License: Apache-2.0
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Logger returns a gin.HandlerFunc (middleware) that logs requests using zerolog.
Requests with errors are logged using log.Err().
Requests without errors are logged using log.Info().
It receives:
A time package format string (e.g. time.RFC3339).
A boolean stating whether to use UTC time zone or local.
Store is a middleware function that initializes the Datastore and attaches to
the context of every http.Request.
Version is a middleware function that appends the Woodpecker version information
to the HTTP response. This is intended for debugging and troubleshooting.
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.