Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@zapier/spectral-api-ruleset
Advanced tools
Ownership • Features • Installation • Usage • Development
TBD
Provides a Spectral linting ruleset to lint API schemas against Zapier's API Design Guidelines.
yarn add -D @stoplight/spectral-cli
yarn add -D @zapier/spectral-api-ruleset
For some reason, installing the CLI global and running
spectral lint
ornpx spectral lint
always fails to find the package. Adding the CLI as local dependency and then running eitheryarn spectral lint
does work.
Create a local spectral.yaml
that extends the ruleset provided by the package:
extends:
- '@zapier/spectral-api-ruleset'
Then run:
yarn spectral lint your-schema.yaml
See the Spectral CLI docs for more details.
Use a Gitlab job like the following
lint:schema:
stage: validate
before_script:
- mkdir spectral
script:
- yarn spectral lint your-schema.yaml -o spectral/junit.xml -f junit
artifacts:
when: always
paths:
- spectral
reports:
junit: spectral/junit.xml
See Continuous Integration docs for more details.
See CONTRIBUTING, also for information on how we use @changesets/cli
to version and publish.
You can add rules to spectral.js
. See the Alternative JS Ruleset Format docs for details.
We're using the JS format so that the package ruleset can also be used in JavaScript.
functions/
.test-schema.yaml
to meet all rules (run yarn test:integrate
to verify).FAQs
Spectral ruleset for Zapier API Guidelines.
The npm package @zapier/spectral-api-ruleset receives a total of 596 weekly downloads. As such, @zapier/spectral-api-ruleset popularity was classified as not popular.
We found that @zapier/spectral-api-ruleset demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.