mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-30 10:11:23 +02:00
Only grant privileged to plugins (#1646)
Closes https://github.com/woodpecker-ci/woodpecker/issues/1525 Co-authored-by: Anbraten <anton@ju60.de>
This commit is contained in:
parent
51168db9fd
commit
7ddc18348f
@ -84,7 +84,7 @@ func (c *Compiler) createProcess(name string, container *yaml.Container, section
|
||||
}
|
||||
}
|
||||
|
||||
if matchImage(container.Image, c.escalated...) {
|
||||
if matchImage(container.Image, c.escalated...) && container.IsPlugin() {
|
||||
privileged = true
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user