
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
yaml-ls-check
Advanced tools
Library and tool used to validate YAML files against one or more schemas utilizing the yaml-language-server project.
Provides an easy way to validate YAML files against given schemas utilizing the yaml-language-server project.
This package contains a CLI, a GitHub action, and the library itself.
Install the CLI via npm:
npm install --global yaml-ls-check
The CLI should now be accessible as yaml-ls-check or the short-hand ylsc, and can be used to validate YAML files:
# Validate all YAML files in the given directory, using the .vscode/settings.json file in it, if present.
ylsc <directory>
ylsc dir <directory>
# Validate given YAML files against the given schema.
# Schema can either be a local or remote one. File paths can be given as glob patterns.
ylsc schema <schema> <files...>
If you have a .vscode/settings.json in the root of your repository directory, you can just use the action directly:
steps:
- uses: actions/checkout@v2
- uses: InoUno/yaml-ls-check@develop
Additional settings for it are:
root: If the repository root should not act as root for the validation.schemaMapping: Specify mapping of schema to file patterns that should match the schema. This overwrites the mapping found in any potential .vscode/settings.json file.steps:
- uses: actions/checkout@v2
- uses: InoUno/yaml-ls-check@develop
with:
root: data
schemaMapping: |
{
"schemas/my-schema.json": [ "files/*.yml" ]
}
npm install yaml-ls-check
import { validateDirectory } from 'yaml-ls-check';
async function someFunction() {
const invalidFiles = await validateDirectory('path/to/a/folder');
// invalidFiles is now an array containing paths to files that failed validation
// and the found errors in the form: { filePath: string, errors: Diagnostics[] }
}
FAQs
Library and tool used to validate YAML files against one or more schemas utilizing the yaml-language-server project.
We found that yaml-ls-check demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.