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.
drone-render
Advanced tools
Render template with CI enviroment injected by Drone CI.
npm install drone-render --save
const render = require('drone-render');
render(`
{% if build.status %}
{{build.finished | datetime('fromNow')}} build {{build.number}} succeeded. Good job {{build.author}}.
{% else %}
build {{build.number}} failed at {{build.finished | datetime}}. Fix me please.
{% endif %}
`);
//output
//a day ago build 20 succeeded. Good job lord.
repo.owner
: repository ownerrepo.name
: repository namebuild.status
: build status type enumeration, either success or failurebuild.event
: build event type enumeration, one of push, pull_request, tag, deploymentbuild.number
: build numberbuild.commit
: git sha for current commitbuild.message
: commit message for the current buildbuild.branch
: git branch for current commitbuild.tag
: git tag for current commitbuild.ref
: git ref for current commitbuild.pull_request
: pull request number for the current buildbuild.source_branch
: source branch for a pull requestbuild.target_branch
: target branch for a pull requestbuild.author
: git author for current commitbuild.link
: link the the build results in dronebuild.started
: unix timestamp for build startedbuild.finished
: unix timestamp for build finisheduppercasefirst
: converts the first letter of a string to uppercasedatetime
: converts a unix timestamp to a date time string. Example {{build.started | datetime}}, you can see more info in nunjucks-date-filterContributions welcome!
FAQs
Render template with CI enviroment injected by Drone CI.
We found that drone-render demonstrated a not healthy version release cadence and project activity because the last version was released 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.
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.