
Product
Introducing Pull Request Stories to Help Security Teams Track Supply Chain Risks
Socket’s new Pull Request Stories give security teams clear visibility into dependency risks and outcomes across scanned pull requests.
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.
The npm package drone-render receives a total of 0 weekly downloads. As such, drone-render popularity was classified as not popular.
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.
Product
Socket’s new Pull Request Stories give security teams clear visibility into dependency risks and outcomes across scanned pull requests.
Research
/Security News
npm author Qix’s account was compromised, with malicious versions of popular packages like chalk-template, color-convert, and strip-ansi published.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.