
Security News
Deno 2.6 + Socket: Supply Chain Defense In Your CLI
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.
A small JavaScript library which checks if the provided IP address belongs to GitHub. Works in Node and the browser.
It uses GitHub's meta endpoint to get the valid IP ranges. The response is cached for the duration GitHub provides in the Cache-Control header.
$ npm i is-github
or "https://cdn.jsdelivr.net/npm/is-github@1".
import { isGitHub } from 'is-github';
if (await isGitHub('1.2.3.4')) {
console.log('Request came from GitHub!');
} else {
console.log('Request was not from GitHub.');
}
It is possible to provide the following options in an object as the second argument:
service: The service to check. One of: 'hooks', 'web', 'api', 'git', 'pages', 'importer' (Default: 'hooks')userAgent: The user agent to use for the request to GitHub. This might not work in the browser. (Default: 'is-github')timeout: The timeout in ms. (Default: 5000)The following API's are required when running in the browser.
FAQs
A small library which checks if the provided IP address belongs to GitHub.
The npm package is-github receives a total of 1 weekly downloads. As such, is-github popularity was classified as not popular.
We found that is-github 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
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.

Security News
New DoS and source code exposure bugs in React Server Components and Next.js: what’s affected and how to update safely.

Security News
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.