64aae8a102
Add support for the 'deployment' boolean property under 'environment:' in workflow YAML. When set to false, the job accesses environment protection rules and secrets without creating a deployment record. Changes: - Add 'deployment' to job-environment-mapping schema (workflow-v1.0.json) - Add 'deployment' to ActionsEnvironmentReference type - Add feature-gated parsing in environment converter - Add 'allowDeploymentKeyword' experimental feature flag - Add xlang test data for enabled/disabled feature flag scenarios
22 lines
404 B
YAML
22 lines
404 B
YAML
include-source: false # Drop file/line/col from output
|
|
skip:
|
|
- C#
|
|
---
|
|
on: push
|
|
jobs:
|
|
build:
|
|
environment:
|
|
name: production
|
|
deployment: false
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- run: echo hi
|
|
---
|
|
{
|
|
"errors": [
|
|
{
|
|
"Message": ".github/workflows/errors-job-environment-deployment-disabled-feature.yml (Line: 6, Col: 7): The key 'deployment' is not allowed"
|
|
}
|
|
]
|
|
}
|