{"id":42482678,"url":"https://github.com/cloudspannerecosystem/appengine-java-sample","last_synced_at":"2026-01-28T11:16:07.117Z","repository":{"id":49201354,"uuid":"236243670","full_name":"cloudspannerecosystem/appengine-java-sample","owner":"cloudspannerecosystem","description":"Sample for using Cloud Spanner from App Engine Java","archived":false,"fork":false,"pushed_at":"2022-07-07T22:12:46.000Z","size":29,"stargazers_count":2,"open_issues_count":2,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2023-03-03T23:10:21.384Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","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/cloudspannerecosystem.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"docs/contributing.md","funding":null,"license":"LICENSE","code_of_conduct":"docs/code-of-conduct.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-01-25T23:24:05.000Z","updated_at":"2023-01-25T19:36:56.000Z","dependencies_parsed_at":"2022-09-05T17:10:45.447Z","dependency_job_id":null,"html_url":"https://github.com/cloudspannerecosystem/appengine-java-sample","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"purl":"pkg:github/cloudspannerecosystem/appengine-java-sample","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudspannerecosystem%2Fappengine-java-sample","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudspannerecosystem%2Fappengine-java-sample/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudspannerecosystem%2Fappengine-java-sample/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudspannerecosystem%2Fappengine-java-sample/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cloudspannerecosystem","download_url":"https://codeload.github.com/cloudspannerecosystem/appengine-java-sample/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudspannerecosystem%2Fappengine-java-sample/sbom","scorecard":{"id":293276,"data":{"date":"2025-08-11","repo":{"name":"github.com/cloudspannerecosystem/appengine-java-sample","commit":"99dc62185d32395c0d5420552afedfc7645ceaf2"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.2,"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":-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":"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":"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":8,"reason":"Found 4/5 approved changesets -- score normalized to 8","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":"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":"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":"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":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":"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":"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":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"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 4 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":0,"reason":"13 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-cj7v-27pg-wf7q","Warn: Project is vulnerable to: GHSA-hmr7-m48g-48f6","Warn: Project is vulnerable to: GHSA-qh8g-58pp-2wxh","Warn: Project is vulnerable to: GHSA-26vr-8j45-3r4w","Warn: Project is vulnerable to: GHSA-86wm-rrjm-8wh8","Warn: Project is vulnerable to: GHSA-g8m5-722r-8whq","Warn: Project is vulnerable to: GHSA-m394-8rww-3jr7","Warn: Project is vulnerable to: GHSA-m6cp-vxjx-65j6","Warn: Project is vulnerable to: GHSA-p26g-97m4-6q7c","Warn: Project is vulnerable to: GHSA-q4rv-gq96-w7c5","Warn: Project is vulnerable to: GHSA-qw69-rqj8-6qw8","Warn: Project is vulnerable to: GHSA-g3wg-6mcf-8jj6","Warn: Project is vulnerable to: GHSA-58qw-p7qm-5rvh"],"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-17T18:51:26.069Z","repository_id":49201354,"created_at":"2025-08-17T18:51:26.069Z","updated_at":"2025-08-17T18:51:26.069Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28844875,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-28T10:53:21.605Z","status":"ssl_error","status_checked_at":"2026-01-28T10:53:20.789Z","response_time":57,"last_error":"SSL_read: 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":[],"created_at":"2026-01-28T11:16:04.446Z","updated_at":"2026-01-28T11:16:07.109Z","avatar_url":"https://github.com/cloudspannerecosystem.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# App Engine Java 11 sample\n[![cloudspannerecosystem](https://circleci.com/gh/cloudspannerecosystem/appengine-java-sample.svg?style=svg)](https://circleci.com/gh/cloudspannerecosystem/appengine-java-sample)\n\nThis sample demonstrates how to use Cloud Spanner from the\n[App Engine Standard with Java 11 environment](https://cloud.google.com/appengine/docs/java/).\n\nPlease feel free to report issues and send pull requests, but note that this\napplication is not officially supported as part of the Cloud Spanner product.\n\n## Prerequisites\n\n### Create a project in the Google Cloud Platform Console\n\nIf you haven't already created a project, create one now.\n\n1. Open the [Cloud Console](https://console.cloud.google.com/).\n1. In the drop-down menu at the top, select **Create a project**.\n1. Give your project a name.\n1. Make a note of the project ID, which might be different from the project\n   name. The project ID is used in commands below.\n\nIf you like, you can activate a\n[Cloud Shell](https://cloud.google.com/shell/docs/) for your project now.\nWhen using Cloud Shell, the Google Cloud SDK and Maven in the steps below will\nalready be installed.\n\n### Set up your Google Cloud Platform Project\n\nInstall the [Google Cloud SDK](https://cloud.google.com/sdk/) if it's not\nalready available in your enviromment. Then run:\n\n    gcloud init\n\nIf this is your first time creating an App engine application:\n\n    gcloud app create\n\n### Install Maven\n\nThis sample uses the [Apache Maven](https://maven.apache.org) build system.\nIf Maven isn't installed in your environment yet,\n[download](https://maven.apache.org/download.cgi) and\n[install](https://maven.apache.org/install.html) it.\nWhen you use Maven as described here, it will automatically download the\nrequired client libraries.\n\n### Google Cloud Shell Open JDK 11 setup:\n\nTo switch to Open JDK 11 in a Cloud Shell session, run:\n\n    # Select the usr/lib/jvm/java-11-openjdk-amd64/bin/java version.\n    sudo update-alternatives --config java\n    # Set the JAVA_HOME variable for Maven to pick the correct JDK:\n    export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64\n\n## Set up the sample\n\nClone the repository:\n\n    git clone https://github.com/cloudspannerecosystem/appengine-java-sample\n\nCompile the [simple-jetty-main](simple-jetty-main/README.md) `Main` class:\n\n    cd appengine-java-sample/simple-jetty-main\n    mvn install\n\nIf this fails with an error about the Java target version, make sure you've\nswitched to the Open JDK 11 as described above.\n\nChange to the `appengine-java-sample` directory:\n\n    cd ..\n\nNext, [create a Spanner instance](https://cloud.google.com/spanner/docs/quickstart-console#create_an_instance)\nand update the `\u003cSPANNER_INSTANCE\u003e` value in\n[`app.yaml`](src/main/appengine/app.yaml) with your instance ID.\n\n## Deploying\n\nReplace `\u003cPROJECT_ID\u003e` below with your project ID:\n\n    mvn package appengine:deploy -Dapp.deploy.projectId=\u003cPROJECT_ID\u003e\n\n## Endpoints\n\n`/spanner`: will run a number of sample operations against the Spanner instance.\nIndividual tasks can be run using the `task` query parameter.\nSee [SpannerTasks](src/main/java/com/example/appengine/spanner/SpannerTasks.java)\nfor the supported set of tasks.\n\nTo execute the endpoint handler of the deployed sample application, open\n`https://\u003cPROJECT_ID\u003e.appspot.com/spanner` in a web browser.\n\nNote: by default all the Spanner example operations run in order, so this\nendpoint handler may take a while to return.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloudspannerecosystem%2Fappengine-java-sample","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcloudspannerecosystem%2Fappengine-java-sample","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloudspannerecosystem%2Fappengine-java-sample/lists"}