Skip to content

Commit 401ecd1

Browse files
Merge pull request #8057 from MicrosoftDocs/users/jukullam/uuf-june-26
Add reference to shell task validation
2 parents 544a77c + 16ab714 commit 401ecd1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/pipelines/process/templates.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,9 @@ jobs:
459459
## Variable reuse
460460
461461
Variables can be defined in one YAML and included in another template. This could be useful if you want to store all of your variables in one file. If you're using a template to include variables in a pipeline, the included template can only be used to define variables. You can use steps and more complex logic when you're [extending from a template](#extend-from-a-template).
462-
Use [parameters](template-parameters.md#passing-parameters) instead of variables when you want to restrict type.
462+
463+
> [!NOTE]
464+
> Use [parameters](template-parameters.md#passing-parameters) instead of variables for added security such as specifying type. For more information on the importance of using parameters for shell tasks, refer to the [Enable shell tasks arguments parameter validation documentation](../security/inputs.md#enable-shell-tasks-arguments-parameter-validation).
463465
464466
In this example, the variable `favoriteVeggie` is included in `azure-pipelines.yml`.
465467

0 commit comments

Comments
 (0)