mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-09-02 18:39:33 +00:00
Fix apparmorProfile being ignored when it's the only field (#4507)
This commit is contained in:
@@ -437,7 +437,7 @@ func podSecurityContext(sc *SecurityContext, secCtxConf SecurityContextConfig, s
|
|||||||
apparmor = apparmorProfile(sc.ApparmorProfile)
|
apparmor = apparmorProfile(sc.ApparmorProfile)
|
||||||
}
|
}
|
||||||
|
|
||||||
if nonRoot == nil && user == nil && group == nil && fsGroup == nil && seccomp == nil {
|
if nonRoot == nil && user == nil && group == nil && fsGroup == nil && seccomp == nil && apparmor == nil {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user