Skip to content

forbidden: violates PodSecurity #12

@muradmm83

Description

@muradmm83

When trying to execute the pipeline on OpenShift, the following tasks fail:

  • cleanup
  • gitclone
  • flake8

With the following error

"output-q1p632-flake8-pod" is forbidden: violates PodSecurity "restricted:latest": unrestricted capabilities (containers "prepare", "place-scripts", "working-dir-initializer", "step-flake8" must set securityContext.capabilities.drop=["ALL"]), runAsNonRoot != true (pod or containers "prepare", "place-scripts", "working-dir-initializer", "step-flake8" must set securityContext.runAsNonRoot=true), seccompProfile (pod or containers "prepare", "place-scripts", "working-dir-initializer", "step-flake8" must set securityContext.seccompProfile.type to "RuntimeDefault" or "Localhost")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions