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.
bitbucket-build-status-hook
Advanced tools
A post-checkout hook for checking commit build status via the Bitbucket REST API.
This Git post-checkout
hook displays the latest Bitbucket Cloud
build status for a commit when you check it out in your terminal. This
allows you to quickly tell if your feature branch is failing, or whether
it's safe to create a new branch from master!
This tool is most useful when symlinked as a post-commit
hook, which runs every
time you check out a branch or commit:
But you can also manually run bitbucket-build-status
to check the build
status of any branch, commit, or commit-ish, at any time.
npm install -g bitbucket-build-status-hook
ln -s /usr/local/bin/bitbucket-build-status .git/hooks/post-checkout
git checkout HEAD
to test that the hook is properly installedThe first time you upload a file you will be prompted for your Bitbucket
email and password. These will be used to retrieve an OAuth refresh
token which is stored in ~/.bitbucket-build-status
and used for
subsequent requests. Treat this token carefully as it can be used to
read repository data on your behalf.
If you have 2FA enabled for your Bitbucket account, the client will be unable to use OAuth to authenticate you. Instead, you'll need to configure a Bitbucket App Password for the client to use. To do this:
Read
access to your
repositories~/.bitbucket-build-status-hook
containing:{
"bitbucket.org": {
"username": "your-username" // (*not* your email address),
"password": "your-app-password"
}
}
By default, the API is assumed to live at api.$domain_of_repo_origin
.
This is not true for developing against staging.bb-inf.net
or
localhost
. To remap the API, copy .bitbucket-build-status-hook.sample
to ~/bitbucket-build-status-hook
.
{
"staging.bb-inf.net": {
"username": "kannonboy",
"password": "password",
"apiDomain": "api-staging.bb-inf.net"
}
}
For localhost
or other Bitbucket Cloud hosts, update
staging.bb-inf.net
and apiDomain
as appropriate.
FAQs
A post-checkout hook for checking commit build status via the Bitbucket REST API.
The npm package bitbucket-build-status-hook receives a total of 1 weekly downloads. As such, bitbucket-build-status-hook popularity was classified as not popular.
We found that bitbucket-build-status-hook 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.