{"id":22201644,"url":"https://github.com/johnstonmatt/is-valid-json-action","last_synced_at":"2026-02-12T16:31:31.153Z","repository":{"id":65160340,"uuid":"433227505","full_name":"johnstonmatt/is-valid-json-action","owner":"johnstonmatt","description":"A GitHub action that succeeds if and only if it is pointed at a valid JSON file","archived":false,"fork":false,"pushed_at":"2022-10-15T04:11:42.000Z","size":696,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-27T05:27:25.233Z","etag":null,"topics":["github-actions","javascript","json","syntax-checker","validation"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/johnstonmatt.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}},"created_at":"2021-11-29T23:22:11.000Z","updated_at":"2023-03-31T00:25:31.000Z","dependencies_parsed_at":"2023-01-05T05:02:48.425Z","dependency_job_id":null,"html_url":"https://github.com/johnstonmatt/is-valid-json-action","commit_stats":{"total_commits":7,"total_committers":1,"mean_commits":7.0,"dds":0.0,"last_synced_commit":"c79f2a62342bfe74e5afa2f636eb92ff631416a8"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/johnstonmatt/is-valid-json-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnstonmatt%2Fis-valid-json-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnstonmatt%2Fis-valid-json-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnstonmatt%2Fis-valid-json-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnstonmatt%2Fis-valid-json-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/johnstonmatt","download_url":"https://codeload.github.com/johnstonmatt/is-valid-json-action/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnstonmatt%2Fis-valid-json-action/sbom","scorecard":{"id":529049,"data":{"date":"2025-08-11","repo":{"name":"github.com/johnstonmatt/is-valid-json-action","commit":"c79f2a62342bfe74e5afa2f636eb92ff631416a8"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.7,"checks":[{"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":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/main.yml:1","Info: no jobLevel write permissions found"],"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/7 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":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"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":"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":"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":"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":"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":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:11: update your workflow using https://app.stepsecurity.io/secureworkflow/johnstonmatt/is-valid-json-action/main.yml/main?enable=pin","Info:   0 out of   1 GitHub-owned GitHubAction dependencies pinned"],"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":"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":"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":"Vulnerabilities","score":5,"reason":"5 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-7r3h-m5j6-3q42","Warn: Project is vulnerable to: GHSA-h5c3-5r3r-rr8q","Warn: Project is vulnerable to: GHSA-rmvr-2pp2-xj38","Warn: Project is vulnerable to: GHSA-xx4v-prfh-6cgc","Warn: Project is vulnerable to: GHSA-r683-j2x4-v87g"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-20T05:16:27.188Z","repository_id":65160340,"created_at":"2025-08-20T05:16:27.188Z","updated_at":"2025-08-20T05:16:27.188Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29325050,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-11T00:34:26.354Z","status":"ssl_error","status_checked_at":"2026-02-11T00:34:09.494Z","response_time":65,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["github-actions","javascript","json","syntax-checker","validation"],"created_at":"2024-12-02T16:09:43.510Z","updated_at":"2026-02-12T16:31:31.129Z","avatar_url":"https://github.com/johnstonmatt.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# is-valid-json action\n\nThis action returns true if a given file is a valid JSON file, otherwise it fails\n\n## Inputs\n\n## `path-to-file`\n\n**Required** The path to the JSON file in your repo to evaluate.\n\n## Outputs\n\n## `is-valid-json`\n\nWhether the provided repo path holds a valid JSON file\n\n## Example usage\n```yaml\non:\n  pull_request:\n    branches:\n      - main\njobs:\n  test_is-valid-json-action:\n    runs-on: ubuntu-latest\n    name: A job to test whether the is-valid-json is working properly\n    steps:\n      - name: Checkout\n        uses: actions/checkout@v2\n      - name: check-validity\n        uses: johnstonmatt/is-valid-json-action@v.1.0.1\n        id: check-validity\n        with:\n          path-to-file: './test-data/valid.json'\n      - name: print-validity\n        run: echo \"The valid file was valid JSON\"\n```\n\n## Notes:\n\nUnlike other environments it is expected that `node_modules` are checked in to `git` when building a GitHub action","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnstonmatt%2Fis-valid-json-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjohnstonmatt%2Fis-valid-json-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnstonmatt%2Fis-valid-json-action/lists"}