mirror of
https://github.com/actions/runner.git
synced 2025-12-12 15:13:30 +00:00
Explicitly define what is allowed for an action
This commit is contained in:
@@ -8,7 +8,8 @@
|
|||||||
"description": "string",
|
"description": "string",
|
||||||
"inputs": "inputs",
|
"inputs": "inputs",
|
||||||
"runs": "runs",
|
"runs": "runs",
|
||||||
"outputs": "outputs"
|
"outputs": "outputs",
|
||||||
|
"defaults": "action-defaults"
|
||||||
},
|
},
|
||||||
"loose-key-type": "non-empty-string",
|
"loose-key-type": "non-empty-string",
|
||||||
"loose-value-type": "any"
|
"loose-value-type": "any"
|
||||||
@@ -51,6 +52,24 @@
|
|||||||
"composite-runs"
|
"composite-runs"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
"action-defaults": {
|
||||||
|
"mapping": {
|
||||||
|
"properties": {
|
||||||
|
"run": "action-defaults-run"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"action-defaults-run": {
|
||||||
|
"mapping": {
|
||||||
|
"properties": {
|
||||||
|
"shell": {
|
||||||
|
"type": "non-empty-string",
|
||||||
|
"required": true
|
||||||
|
},
|
||||||
|
"working-directory": "non-empty-string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"container-runs": {
|
"container-runs": {
|
||||||
"mapping": {
|
"mapping": {
|
||||||
"properties": {
|
"properties": {
|
||||||
@@ -120,7 +139,22 @@
|
|||||||
"hashFiles(1,255)"
|
"hashFiles(1,255)"
|
||||||
],
|
],
|
||||||
"sequence": {
|
"sequence": {
|
||||||
"item-type": "any"
|
"item-type": "composite-step"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"composite-step": {
|
||||||
|
"mapping": {
|
||||||
|
"properties": {
|
||||||
|
"name": "string-steps-context",
|
||||||
|
"id": "non-empty-string",
|
||||||
|
"run": {
|
||||||
|
"type": "string-steps-context",
|
||||||
|
"required": true
|
||||||
|
},
|
||||||
|
"env": "step-env",
|
||||||
|
"working-directory": "string-steps-context",
|
||||||
|
"shell": "string-steps-context"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"container-runs-context": {
|
"container-runs-context": {
|
||||||
@@ -157,6 +191,21 @@
|
|||||||
"string": {
|
"string": {
|
||||||
"require-non-empty": true
|
"require-non-empty": true
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"string-steps-context": {
|
||||||
|
"context": [
|
||||||
|
"github",
|
||||||
|
"needs",
|
||||||
|
"strategy",
|
||||||
|
"matrix",
|
||||||
|
"secrets",
|
||||||
|
"steps",
|
||||||
|
"job",
|
||||||
|
"runner",
|
||||||
|
"env",
|
||||||
|
"hashFiles(1,255)"
|
||||||
|
],
|
||||||
|
"string": {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user