
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
cloud-build-badge
Advanced tools
A cloud function that changes GitHub badges depending on Cloud Build status. Forked from sbsends/cloud-build-badge
Automate the creation of Google Cloud Build badges for your project! Cloud builds in the Google Cloud Platform are fun, but unlike Travis, Circle-CI, and AppVeyor, it doesn't provide badges out-of-the-box. This small script aims to provide a solution.
(This is a fork of
sbsends/cloud-build-badge that
solves the same problem using sed
commands and environment variables. My aim
is to provide a more "JS-native" solution)
I also wrote a blog post tutorial for creating Cloud Build badges. Read it here
The first three steps ensure that we have the required badges in our project's cloud storage. The last step simply install this package in your system.
${BUCKET}
), and make a folder named build
.build/
, save an SVG copy of the SUCCESS and FAILURE badges. You can
create your own here, or you can just copy and save
from here
(success,
failure).cloud-build-badge
via npm
:$ npm install cloud-build-badge
It only takes three steps to start deploying your cloud badges! First we create
the deploy script, then we call gcloud functions
to send it over to GCP, then
we put the resulting badge in our project's README
cloud-build-badge
and supply the following arguments:--id deploy function unique ID
--repository target repository name
--branches target branches, e.g. master, development
--bucket name of bucket, e.g. ${BUCKET}
For example,
cloud-build-badge \
--id myFunction \
--repository my-repository \
--branches master development \ # You can supply multiple values
--bucket my-project-bucket
This will generate a JS file (default is function.js
) that
contains the deploy function that we'll need.
gcloud functions
. As
reference, here's what it looks like:gcloud functions deploy <ID> \
--runtime nodejs6 \
--trigger-resource cloud-builds \
--trigger-event google.pubsub.topic.publish
[](https://github.com/ljvmiranda921/cloud-build-badge)
FAQs
A cloud function that changes GitHub badges depending on Cloud Build status. Forked from sbsends/cloud-build-badge
The npm package cloud-build-badge receives a total of 10 weekly downloads. As such, cloud-build-badge popularity was classified as not popular.
We found that cloud-build-badge 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.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.