
Security News
Meet the Socket Team at RSAC and BSidesSF 2025
Join Socket for exclusive networking events, rooftop gatherings, and one-on-one meetings during BSidesSF and RSA 2025 in San Francisco.
create-check
Advanced tools
Create a GitHub check with annotations on a PR
npm install --save-dev create-check
# or
yarn add -D create-check
Everything is written in typescript with JSDOC comments so your editor should tell you what each option is and does.
import createCheck from 'create-check';
async function main() {
await createCheck({
tool: 'stylelint',
name: 'Check Styles for Errors',
annotations: createAnnotations(results),
errorCount,
warningCount,
appId: APP_ID,
privateKey: PRIVATE_KEY,
});
console.log('Created check on PR');
}
main();
To get this package to work on github enterprise instances you will need to set the GH_API
or GITHUB_URL
environment variable to a url pointing towards your enterprise GitHub's API.
You may also need custom previews for some apis to work. Set the GH_PREVIEWS
variable to a comma separated list of previews you'd like enabled.
Example:
GH_PREVIEWS=eye-scream-preview,machine-man-preview
This library will detect all the data it needs from the env, but sometimes a CI doesn't expose everything. The following env vars can be set:
REPO
OWNER
FAQs
Create a GitHub check + annotation.
The npm package create-check receives a total of 6,557 weekly downloads. As such, create-check popularity was classified as popular.
We found that create-check 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
Join Socket for exclusive networking events, rooftop gatherings, and one-on-one meetings during BSidesSF and RSA 2025 in San Francisco.
Security News
Biome's v2.0 beta introduces custom plugins, domain-specific linting, and type-aware rules while laying groundwork for HTML support and embedded language features in 2025.
Security News
Next.js has patched a critical vulnerability (CVE-2025-29927) that allowed attackers to bypass middleware-based authorization checks in self-hosted apps.