From f3df6f8873bc360a1c4ea1b16ff15f72b828a6bb Mon Sep 17 00:00:00 2001 From: Patrick Schratz Date: Thu, 9 Nov 2023 19:31:08 +0100 Subject: [PATCH] Add `privileged` schema definition (#2777) Co-authored-by: 6543 --- .../yaml/linter/schema/.woodpecker/test-step.yml | 1 + pipeline/frontend/yaml/linter/schema/schema.json | 11 +++++++++++ 2 files changed, 12 insertions(+) diff --git a/pipeline/frontend/yaml/linter/schema/.woodpecker/test-step.yml b/pipeline/frontend/yaml/linter/schema/.woodpecker/test-step.yml index 43a9a2af2..2f0d0f6d8 100644 --- a/pipeline/frontend/yaml/linter/schema/.woodpecker/test-step.yml +++ b/pipeline/frontend/yaml/linter/schema/.woodpecker/test-step.yml @@ -17,6 +17,7 @@ steps: commands: go test commands: + privileged: true image: golang commands: - go get diff --git a/pipeline/frontend/yaml/linter/schema/schema.json b/pipeline/frontend/yaml/linter/schema/schema.json index af32d89fc..2557cf182 100644 --- a/pipeline/frontend/yaml/linter/schema/schema.json +++ b/pipeline/frontend/yaml/linter/schema/schema.json @@ -212,6 +212,9 @@ "image": { "$ref": "#/definitions/step_image" }, + "privileged": { + "$ref": "#/definitions/step_privileged" + }, "pull": { "$ref": "#/definitions/step_pull" }, @@ -423,6 +426,11 @@ "description": "Read more: https://woodpecker-ci.org/docs/usage/pipeline-syntax#image", "type": "string" }, + "step_privileged": { + "description": "Run the step in privileged mode. Read more: https://woodpecker-ci.org/docs/usage/pipeline-syntax#privileged", + "type": "boolean", + "default": false + }, "step_pull": { "description": "Always pull the latest image on pipeline execution Read more: https://woodpecker-ci.org/docs/usage/pipeline-syntax#image", "type": "boolean" @@ -561,6 +569,9 @@ "image": { "$ref": "#/definitions/step_image" }, + "privileged": { + "$ref": "#/definitions/step_privileged" + }, "pull": { "$ref": "#/definitions/step_pull" },