{"id":20331885,"url":"https://github.com/grafbase/schema-check-action","last_synced_at":"2026-03-19T15:19:42.800Z","repository":{"id":211331321,"uuid":"728808369","full_name":"grafbase/schema-check-action","owner":"grafbase","description":"A GitHub Action to run schema checks","archived":false,"fork":false,"pushed_at":"2024-11-14T22:46:04.000Z","size":14,"stargazers_count":1,"open_issues_count":3,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-12-06T01:26:06.760Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/grafbase.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-12-07T18:34:52.000Z","updated_at":"2023-12-07T19:24:08.000Z","dependencies_parsed_at":"2024-04-19T05:26:38.625Z","dependency_job_id":"f106408f-6fb4-4b42-8547-41beccf5dee2","html_url":"https://github.com/grafbase/schema-check-action","commit_stats":null,"previous_names":["grafbase/schema-check-action"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/grafbase/schema-check-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grafbase%2Fschema-check-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grafbase%2Fschema-check-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grafbase%2Fschema-check-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grafbase%2Fschema-check-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/grafbase","download_url":"https://codeload.github.com/grafbase/schema-check-action/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grafbase%2Fschema-check-action/sbom","scorecard":{"id":443199,"data":{"date":"2025-08-11","repo":{"name":"github.com/grafbase/schema-check-action","commit":"38f31e58ef081b6e5ae5316526f3779c06ed416d"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.6,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Code-Review","score":0,"reason":"Found 0/16 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 5 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-19T06:02:19.172Z","repository_id":211331321,"created_at":"2025-08-19T06:02:19.172Z","updated_at":"2025-08-19T06:02:19.172Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30205893,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-06T19:07:06.838Z","status":"online","status_checked_at":"2026-03-07T02:00:06.765Z","response_time":53,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-14T20:23:58.615Z","updated_at":"2026-03-07T02:03:39.907Z","avatar_url":"https://github.com/grafbase.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Grafbase Schema Check Action\n\nThis is a GitHub Action to run schema checks on your GraphQL subgraphs and\nstandalone graphs before publishing them.\n\nUsing it can look like this:\n\n```yaml\n- uses: grafbase/schema-check-action@v1\n  with:\n    grafbase-access-token: ${{ secrets.GRAFBASE_ACCESS_TOKEN }}\n    project-ref: tomhoule/grafbase-single-graph-ci-example@main\n    schema-path: ./sdl.graphql\n    subgraph-name: products\n```\n\n## Inputs\n\n- `grafbase-access-token` (required): an access token generated on the Grafbase dashboard.\n- `project-ref` (required): the project and (optional) branch of the graph to check.\n- `schema-path` (required): the file system path to the schema to check (as GraphQL SDL).\n\n   Tip: the easiest way to produce the GraphQL schema for your graph is\n   `grafbase introspect --dev \u003e api.graphql`. You can run that command in a\n   workflow step before the action, and pass `schema-path: api.graphql` to this\n   action.\n- `subgraph-name`: the name of the subgraph to check, in a federated project.\n  This should not be provided if the project is a single graph.\n- `slack-incoming-webhook-url` (optional): a Slack [Incoming Webhook](https://api.slack.com/messaging/webhooks) url that\n  will be called with the errors whenever checks fail. See the [official\n  tutorial](https://api.slack.com/messaging/webhooks) on how to set up an app\n  and a webhook URL.\n\n\n## Behavior\n\nThere are no outputs. The step will fail with the schema check errors if there are any.\n\n## Workflow\n\nIn general, a schema check fits in your deployment workflow in any place where\nyou publish a (sub)graph: you run a check before publishing to make sure that\nthe schema can be safely published.\n\nFor example, if your schema is published on merge to `main`, you would run the\ncheck against `myaccount/myproject@main` on pull requests to `main`.\n\n## Example repositories\n\n- [Single graph with the Postgres connector](https://github.com/tomhoule/grafbase-schema-check-action-single-graph-example) ([workflow file](https://github.com/tomhoule/grafbase-schema-check-action-single-graph-example/blob/main/.github/workflows/check.yml))\n- [Federated graph and subgraphs with the Postgres connector](https://github.com/tomhoule/grafbase-schema-check-action-federated-graph-example) ([workflow file](https://github.com/tomhoule/grafbase-schema-check-action-federated-graph-example/blob/main/.github/workflows/check.yml))\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrafbase%2Fschema-check-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgrafbase%2Fschema-check-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrafbase%2Fschema-check-action/lists"}