Allow alter trusted clone plugins and filter them via tag (#4074)

This commit is contained in:
6543
2024-09-01 20:41:10 +02:00
committed by GitHub
parent 8e0af15e85
commit 3c8204a0e0
17 changed files with 151 additions and 58 deletions

View File

@@ -29,12 +29,14 @@ var DefaultConfigOrder = [...]string{
}
const (
// DefaultCloneImage can be changed by 'WOODPECKER_DEFAULT_CLONE_IMAGE' at runtime.
// DefaultClonePlugin can be changed by 'WOODPECKER_DEFAULT_CLONE_PLUGIN' at runtime.
// renovate: datasource=docker depName=woodpeckerci/plugin-git
DefaultCloneImage = "docker.io/woodpeckerci/plugin-git:2.5.2"
DefaultClonePlugin = "docker.io/woodpeckerci/plugin-git:2.5.2"
)
var TrustedCloneImages = []string{
DefaultCloneImage,
// TrustedClonePlugins can be changed by 'WOODPECKER_PLUGINS_TRUSTED_CLONE' at runtime.
var TrustedClonePlugins = []string{
DefaultClonePlugin,
"docker.io/woodpeckerci/plugin-git",
"quay.io/woodpeckerci/plugin-git",
}