
Security News
Packagist Urges Immediate Composer Update After GitHub Actions Token Leak
Packagist urges PHP projects to update Composer after a GitHub token format change exposed some GitHub Actions tokens in CI logs.
@first-lego-league/ms-correlation
Advanced tools
A library for supporting FIRST LEGO League TMS Module Standard correlation section.
There are two options to use this library: with middleware or with domain.
When having frameworks like express that
support middlewares. You can use the middleware
correlationMiddleware this middleware will also take care of
authentication.
When not using the middleware you should open a new domain in your
code, and use the function correlateSession. For example:
const Domain = require('domain')
const { correlateSession } = require('@first-lego-league/ms-correlation')
someEventEmitter.on('someEvent', event => {
const correlationId = getCorrelationId(event)
const authToken = getAuthToken(event)
Domain.create().run(() => {
correlateSession(correlationId, authToken)
handleEvent(event)
})
})
Be aware that both argument of this function are optionals.
You can use the function getCorrelationId and
getAuthenticationData to retrive data on the current session.
To contribute to this repository, simply create a PR and set one of the Code Owners to be a reviewer. Please notice the linting and UT, because they block merge. Keep the package lightweight and easy to use. Thank you for contributing!
FAQs
A library to help support MS with domains
We found that @first-lego-league/ms-correlation demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 open source maintainers 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
Packagist urges PHP projects to update Composer after a GitHub token format change exposed some GitHub Actions tokens in CI logs.

Research
GemStuffer abuses RubyGems as an exfiltration channel, packaging scraped UK council portal data into junk gems published from new accounts.

Company News
Socket was named to the Rising in Cyber 2026 list, recognizing 30 private cybersecurity startups selected by CISOs and security executives.