{"id":13452229,"url":"https://github.com/google/jsonnet","last_synced_at":"2025-09-09T20:54:04.830Z","repository":{"id":19290081,"uuid":"22527161","full_name":"google/jsonnet","owner":"google","description":"Jsonnet - The data templating language","archived":false,"fork":false,"pushed_at":"2025-07-23T09:16:57.000Z","size":55767,"stargazers_count":7331,"open_issues_count":208,"forks_count":465,"subscribers_count":108,"default_branch":"master","last_synced_at":"2025-09-03T08:55:47.480Z","etag":null,"topics":["config","configuration","functional","json","jsonnet"],"latest_commit_sha":null,"homepage":"http://jsonnet.org","language":"Jsonnet","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/google.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING","funding":null,"license":"LICENSE","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,"zenodo":null}},"created_at":"2014-08-01T20:29:12.000Z","updated_at":"2025-09-03T07:16:01.000Z","dependencies_parsed_at":"2024-02-10T16:44:43.448Z","dependency_job_id":"f722d06f-ec70-496d-bd5a-0bb4c415875c","html_url":"https://github.com/google/jsonnet","commit_stats":{"total_commits":1003,"total_committers":154,"mean_commits":6.512987012987013,"dds":0.5064805583250249,"last_synced_commit":"067985894aaad4e6b92210c721aaa3e3ea108013"},"previous_names":[],"tags_count":40,"template":false,"template_full_name":null,"purl":"pkg:github/google/jsonnet","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/google%2Fjsonnet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/google%2Fjsonnet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/google%2Fjsonnet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/google%2Fjsonnet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/google","download_url":"https://codeload.github.com/google/jsonnet/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/google%2Fjsonnet/sbom","scorecard":{"id":437305,"data":{"date":"2025-08-11","repo":{"name":"github.com/google/jsonnet","commit":"7d1cbf8e69bc8b28e0405080771ccd4da36ac716"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":6.6,"checks":[{"name":"Code-Review","score":2,"reason":"Found 5/23 approved changesets -- score normalized to 2","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":"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":"Maintained","score":10,"reason":"6 commit(s) and 15 issue activity found in the last 90 days -- score normalized to 10","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":9,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Info: jobLevel 'contents' permission set to 'read': .github/workflows/publish-python.yml:28","Info: jobLevel 'contents' permission set to 'read': .github/workflows/publish-python.yml:58","Info: jobLevel 'contents' permission set to 'read': .github/workflows/publish-python.yml:84","Warn: jobLevel 'contents' permission set to 'write': .github/workflows/release.yml:29","Info: topLevel 'contents' permission set to 'read': .github/workflows/build_and_test.yml:17","Warn: no topLevel permission defined: .github/workflows/publish-python.yml:1","Warn: no topLevel permission defined: .github/workflows/release.yml:1"],"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":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Fuzzing","score":10,"reason":"project is fuzzed","details":["Info: OSSFuzz integration found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Packaging","score":10,"reason":"packaging workflow detected","details":["Info: Project packages its releases by way of GitHub Actions.: .github/workflows/publish-python.yml:78"],"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":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact v0.21.0 not signed: https://api.github.com/repos/google/jsonnet/releases/217023175","Warn: release artifact v0.21.0-rc2 not signed: https://api.github.com/repos/google/jsonnet/releases/205423130","Warn: release artifact v0.21.0-rc1 not signed: https://api.github.com/repos/google/jsonnet/releases/201853555","Warn: release artifact v0.21.0 does not have provenance: https://api.github.com/repos/google/jsonnet/releases/217023175","Warn: release artifact v0.21.0-rc2 does not have provenance: https://api.github.com/repos/google/jsonnet/releases/205423130","Warn: release artifact v0.21.0-rc1 does not have provenance: https://api.github.com/repos/google/jsonnet/releases/201853555"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Security-Policy","score":10,"reason":"security policy file detected","details":["Info: security policy file detected: github.com/google/.github/SECURITY.md:1","Info: Found linked content: github.com/google/.github/SECURITY.md:1","Info: Found disclosure, vulnerability, and/or timelines in security policy: github.com/google/.github/SECURITY.md:1","Info: Found text in security policy: github.com/google/.github/SECURITY.md:1"],"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":"Branch-Protection","score":1,"reason":"branch protection is not maximal on development and all release branches","details":["Warn: branch protection not enabled for branch 'prepare-release'","Info: 'allow deletion' disabled on branch 'master'","Info: 'force pushes' disabled on branch 'master'","Info: 'branch protection settings apply to administrators' is required to merge on branch 'master'","Warn: could not determine whether codeowners review is allowed","Warn: no status checks found to merge onto branch 'master'","Warn: PRs are not required to make changes on branch 'master'; or we don't have data to detect it.If you think it might be the latter, make sure to run Scorecard with a PAT or use Repo Rules (that are always public) instead of Branch Protection settings"],"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":1,"reason":"SAST tool is not run on all commits -- score normalized to 1","details":["Warn: 4 commits out of 24 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"}},{"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":"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":"Pinned-Dependencies","score":3,"reason":"dependency not pinned by hash detected -- score normalized to 3","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build_and_test.yml:97: update your workflow using https://app.stepsecurity.io/secureworkflow/google/jsonnet/build_and_test.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build_and_test.yml:27: update your workflow using https://app.stepsecurity.io/secureworkflow/google/jsonnet/build_and_test.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build_and_test.yml:36: update your workflow using https://app.stepsecurity.io/secureworkflow/google/jsonnet/build_and_test.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build_and_test.yml:48: update your workflow using https://app.stepsecurity.io/secureworkflow/google/jsonnet/build_and_test.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build_and_test.yml:49: update your workflow using https://app.stepsecurity.io/secureworkflow/google/jsonnet/build_and_test.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build_and_test.yml:68: update your workflow using https://app.stepsecurity.io/secureworkflow/google/jsonnet/build_and_test.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build_and_test.yml:85: update your workflow using https://app.stepsecurity.io/secureworkflow/google/jsonnet/build_and_test.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/publish-python.yml:31: update your workflow using https://app.stepsecurity.io/secureworkflow/google/jsonnet/publish-python.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/publish-python.yml:33: update your workflow using https://app.stepsecurity.io/secureworkflow/google/jsonnet/publish-python.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/publish-python.yml:43: update your workflow using https://app.stepsecurity.io/secureworkflow/google/jsonnet/publish-python.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/publish-python.yml:61: update your workflow using https://app.stepsecurity.io/secureworkflow/google/jsonnet/publish-python.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/publish-python.yml:72: update your workflow using https://app.stepsecurity.io/secureworkflow/google/jsonnet/publish-python.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/publish-python.yml:90: update your workflow using https://app.stepsecurity.io/secureworkflow/google/jsonnet/publish-python.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/publish-python.yml:94: update your workflow using https://app.stepsecurity.io/secureworkflow/google/jsonnet/publish-python.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:33: update your workflow using https://app.stepsecurity.io/secureworkflow/google/jsonnet/release.yml/master?enable=pin","Warn: containerImage not pinned by hash: Dockerfile:1","Warn: containerImage not pinned by hash: Dockerfile:12: pin your Docker image by updating alpine:latest to alpine:latest@sha256:4bcff63911fcb4448bd4fdacec207030997caf25e9bea4045fa6c8c44de311d1","Warn: pipCommand not pinned by hash: .github/workflows/build_and_test.yml:54","Warn: pipCommand not pinned by hash: .github/workflows/publish-python.yml:39","Info:   0 out of  15 GitHub-owned GitHubAction dependencies pinned","Info:   3 out of   3 third-party GitHubAction dependencies pinned","Info:   1 out of   3 pipCommand dependencies pinned","Info:   0 out of   2 containerImage 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"}}]},"last_synced_at":"2025-08-19T04:58:50.235Z","repository_id":19290081,"created_at":"2025-08-19T04:58:50.235Z","updated_at":"2025-08-19T04:58:50.235Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273588142,"owners_count":25132849,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-04T02:00:08.968Z","response_time":61,"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":["config","configuration","functional","json","jsonnet"],"created_at":"2024-07-31T07:01:17.603Z","updated_at":"2025-09-09T20:54:04.808Z","avatar_url":"https://github.com/google.png","language":"Jsonnet","readme":"# Jsonnet - The data templating language\n\n![master branch build status badge](https://github.com/google/jsonnet/actions/workflows/build_and_test.yml/badge.svg?event=push\u0026branch=master)\n\nFor an introduction to Jsonnet and documentation,\n[visit our website](https://jsonnet.org).\n\nThis repository contains the original implementation. You can also try [go-jsonnet](https://github.com/google/go-jsonnet), a newer implementation which in some cases is orders of magnitude faster, and is recommended in preference to the C++ version.\n\nVisit our [discussion forum](https://groups.google.com/g/jsonnet).\n\n**Security note:** If you need to process *untrusted inputs* (untrusted Jsonnet code), it is best not to use the C++ implementation, as it is not hardened for that use-case. The expected use-case is for evaluating Jsonnet code that you / your organisation has written and trusts not to be malicious.\n\n## Packages\n\nJsonnet is available on Homebrew:\n\n```\nbrew install jsonnet\n```\n\n[Jsonnet](https://packages.msys2.org/base/mingw-w64-jsonnet) is available on [MSYS2](https://www.msys2.org/):\n\n```\npacman -S mingw-w64-clang-i686-jsonnet\n```\n```\npacman -S mingw-w64-clang-x86_64-jsonnet\n```\n```\npacman -S mingw-w64-i686-jsonnet\n```\n```\npacman -S mingw-w64-x86_64-jsonnet\n```\n```\npacman -S mingw-w64-ucrt-x86_64-jsonnet\n```\n\nThe Python binding is on pypi:\n\n```\npip install jsonnet\n```\n\nYou can also download and install Jsonnet using the [vcpkg](https://github.com/Microsoft/vcpkg/)\ndependency manager:\n\n```\ngit clone https://github.com/Microsoft/vcpkg.git\ncd vcpkg\n./bootstrap-vcpkg.sh\n./vcpkg integrate install\nvcpkg install jsonnet\n```\n\nThe Jsonnet port in vcpkg is kept up to date by Microsoft team members and community contributors.\nIf the version is out of date, please [create an issue or pull\nrequest](https://github.com/Microsoft/vcpkg) on the vcpkg repository.\n\n## Building Jsonnet\n\nYou can use either GCC or Clang to build Jsonnet. Note that on recent versions\nof macOS, `/usr/bin/gcc` and `/usr/bin/g++` are actually Clang, so there is no\ndifference.\n\n### Makefile\n\nTo build Jsonnet with GCC, run:\n\n```\nmake\n```\n\nTo build Jsonnet with Clang, run:\n\n```\nmake CC=clang CXX=clang++\n```\n\nTo run the output binary, run:\n\n```\n./jsonnet\n```\n\nTo run the reformatter, run:\n\n```\n./jsonnetfmt\n```\n\n### Bazel\n\nBazel builds are also supported.\nInstall [Bazel](https://www.bazel.io/versions/master/docs/install.html) if it is\nnot installed already. Then, run the following command to build with GCC:\n\n```\nbazel build -c opt //cmd:all\n```\n\nTo build with Clang, use one of these two options:\n\n```\nenv CC=clang CXX=clang++ bazel build -c opt //cmd:all\n\n# OR\n\nbazel build -c opt --action_env=CC=clang --action_env=CXX=clang++ //cmd:all\n```\n\nThis builds the `jsonnet` and `jsonnetfmt` targets defined in [`cmd/BUILD`](./cmd/BUILD). To launch\nthe output binaries, run:\n\n```\nbazel-bin/cmd/jsonnet\nbazel-bin/cmd/jsonnetfmt\n```\n\n\n### Cmake\n\n\n```\ncmake . -Bbuild\n```\n\n```\ncmake --build build --target run_tests\n```\n\n## Contributing\n\nSee the [contributing page](https://jsonnet.org/learning/community.html#license) on our website.\n\n\n## Developing Jsonnet\n\n### Running tests\n\nTo run the comprehensive suite:\n\n```\nmake test\n```\n\n\n### Locally serving the website\n\nYou need a `doc/js/libjsonnet.wasm` which can either be downloaded from the\nproduction website:\n\n```\nwget https://jsonnet.org/js/libjsonnet.wasm -O doc/js/libjsonnet.wasm\n```\n\nOr you can build it yourself, which requires checking out\n[go-jsonnet](https://github.com/google/go-jsonnet).  See the README.md in\nthat repo for instructions.\n\nThe standard library is documented in a structured format in `doc/_stdlib_gen/stdlib-content.jsonnet`.\nThe HTML (input for Jekyll) is regenerated using the following command:\n\n```\ntools/scripts/update_web_content.sh\n```\n\nThen, from the root of the repository you can generate and serve the website using\n[Jekyll](https://jekyllrb.com/) (you need version 4.3.0 or later):\n\n```\njekyll serve -s doc/\n```\n\nThis should build and serve the website locally, and automatically rebuild\nwhen you change any underlying files.\n","funding_links":[],"categories":["Jsonnet","Misc","Projects built with Bazel","Jsonnet (3)","config","C++","Kubernetes","json","Continuous Delivery \u0026 GitOps","Configuration Management"],"sub_categories":["Google projects","Configuration"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoogle%2Fjsonnet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgoogle%2Fjsonnet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoogle%2Fjsonnet/lists"}