Gathering detailed insights and metrics for @octokit/graphql-schema
Gathering detailed insights and metrics for @octokit/graphql-schema
Gathering detailed insights and metrics for @octokit/graphql-schema
Gathering detailed insights and metrics for @octokit/graphql-schema
GitHub’s GraphQL Schema with validation. Automatically updated.
npm install @octokit/graphql-schema
63.6
Supply Chain
95.7
Quality
89.7
Maintenance
100
Vulnerability
100
License
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
178 Stars
1,019 Commits
61 Forks
9 Watching
2 Branches
45 Contributors
Updated on 26 Nov 2024
JavaScript (87.49%)
TypeScript (12.51%)
Cumulative downloads
Total Downloads
Last day
-0.9%
25,011
Compared to previous day
Last week
1.7%
145,498
Compared to previous week
Last month
12.4%
577,755
Compared to previous month
Last year
79.5%
6,158,969
Compared to previous year
GitHub’s GraphQL Schema with validation. Automatically updated.
1const { validate } = require("@octokit/graphql-schema"); 2const errors = validate(` 3{ 4 viewer { 5 login 6 } 7} 8`); 9 10// errors is array. Contains errors if any
You can also load the current Schema directly as JSON or IDL.
1const { schema } = require("@octokit/graphql-schema"); 2schema.json; // JSON version 3schema.idl; // IDL version
1import { graphql } from "@octokit/graphql"; 2import { Repository } from "@octokit/graphql-schema"; 3 4const { repository } = await graphql<{ repository: Repository }>( 5 ` 6 { 7 repository(owner: "octokit", name: "graphql.js") { 8 issues(last: 3) { 9 edges { 10 node { 11 title 12 } 13 } 14 } 15 } 16 } 17 `, 18 { 19 headers: { 20 authorization: `token secret123`, 21 }, 22 }, 23);
git clone https://github.com/octokit/graphql-schema.git
cd graphql-schema
npm install
npm test
Update schema files (GITHUB_TOKEN
requires no scope)
GITHUB_TOKEN=... npm run update
x-octokit
extensionNo vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
14 commit(s) and 1 issue activity found in the last 90 days -- score normalized to 10
Reason
all changesets reviewed
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
packaging workflow detected
Details
Reason
security policy file detected
Details
Reason
SAST tool detected but not run on all commits
Details
Reason
1 existing vulnerabilities detected
Details
Reason
dependency not pinned by hash detected -- score normalized to 3
Details
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Score
Last Scanned on 2024-11-18
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More