
Security News
GitHub Actions Checkout Now Blocks Risky pull_request_target Checkouts
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.
github.com/hgoscenski/xk6-mongo
Advanced tools
K6 extension to perform tests on mongo.
A k6 extension for interacting with mongoDb while testing.
To build a custom k6 binary with this extension, first ensure you have the prerequisites:
Download xk6:
go install go.k6.io/xk6/cmd/xk6@latest
xk6 build --with github.com/GhMartingit/xk6-mongo
This will create a k6 binary that includes the xk6-mongo extension in your local folder. This k6 binary can now run a k6 test.
To make development a little smoother, use the Makefile in the root folder. The default target will format your code, run tests, and create a k6 binary with your local code rather than from GitHub.
git clone git@github.com/GhMartingit/xk6-mongo.git
cd xk6-mongo
make build
Using the k6 binary with xk6-mongo, run the k6 test as usual:
./k6 run test.js
import xk6_mongo from 'k6/x/mongo';
const client = xk6_mongo.newClient('mongodb://localhost:27017');
export default ()=> {
let doc = {
correlationId: `test--mongodb`,
title: 'Perf test experiment',
url: 'example.com',
locale: 'en',
time: `${new Date(Date.now()).toISOString()}`
};
client.insert("testdb", "testcollection", doc);
}
FAQs
Unknown package
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
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.

Product
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.

Product
Socket MCP now lets AI assistants review org alerts, investigate threats using the Socket threat feed, and inspect package files in addition to dependency scoring.