AZDO.1024 - Disable Node 6 tasks.
Overviewβ
Disable Node 6 tasks.
Rationale: Node.js 6 reached end-of-life in April 2019 and no longer receives security patches. Pipeline tasks that use the Node 6 execution handler run on an unpatched, unsupported runtime, which may expose the pipeline to known vulnerabilities.
Remediation actionβ
Enable the restriction to prevent Node 6 tasks from executing in pipelines.
- Sign in to your organization.
- Choose Organization settings.
- Select Settings under Pipelines.
- Go to the section "Task restrictions" and turn on "Disable Node 6 tasks"
Results: With this enabled, pipelines will fail if they utilize a task with a Node 6 execution handler.
Related linksβ
- Learn - Prevent malicious code execution
- Learn - Remove Node 6 and Node 10 runners from Microsoft-hosted agents
Test Metadataβ
| Field | Value |
|---|---|
| Test ID | AZDO.1024 |
| Severity | Medium |
| Suite | Maester |
| Category | Azure DevOps |
| PowerShell test | Test-AzdoOrganizationTaskRestrictionsDisableNode6Task |
| Services | AzureDevOps |
| Learn more | https://learn.microsoft.com/azure/devops/release-notes/roadmap/2022/no-node-6-on-hosted-agents |
| Tags | AZDO, AZDO.1024 |
Sourceβ
- Test:
tests/Maester/AzureDevOps/Test.AZDO.1024.ps1 - Documentation:
tests/Maester/AzureDevOps/Test.AZDO.1024.md
