{"id":41506759,"url":"https://github.com/hzde0128/goimg","last_synced_at":"2026-01-23T19:35:02.690Z","repository":{"id":48882398,"uuid":"211623448","full_name":"hzde0128/goimg","owner":"hzde0128","description":"Image Server with Golang","archived":false,"fork":false,"pushed_at":"2021-07-07T09:10:50.000Z","size":96,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-06-19T19:40:20.337Z","etag":null,"topics":["goimg","image","img","server"],"latest_commit_sha":null,"homepage":"https://huangzhongde.cn","language":"Go","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/hzde0128.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":"2019-09-29T07:37:05.000Z","updated_at":"2021-08-10T06:54:19.000Z","dependencies_parsed_at":"2022-09-16T03:50:28.504Z","dependency_job_id":null,"html_url":"https://github.com/hzde0128/goimg","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hzde0128/goimg","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hzde0128%2Fgoimg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hzde0128%2Fgoimg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hzde0128%2Fgoimg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hzde0128%2Fgoimg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hzde0128","download_url":"https://codeload.github.com/hzde0128/goimg/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hzde0128%2Fgoimg/sbom","scorecard":{"id":475911,"data":{"date":"2025-08-11","repo":{"name":"github.com/hzde0128/goimg","commit":"aa0dcc53e98a49562d81eaef04a4f2bb21b04db8"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.4,"checks":[{"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":"Code-Review","score":0,"reason":"Found 1/26 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":"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":"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":"Token-Permissions","score":9,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Info: jobLevel 'actions' permission set to 'read': .github/workflows/codeql-analysis.yml:28","Info: jobLevel 'contents' permission set to 'read': .github/workflows/codeql-analysis.yml:29","Warn: no topLevel permission defined: .github/workflows/codeql-analysis.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":"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":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:42: update your workflow using https://app.stepsecurity.io/secureworkflow/hzde0128/goimg/codeql-analysis.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:46: update your workflow using https://app.stepsecurity.io/secureworkflow/hzde0128/goimg/codeql-analysis.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:57: update your workflow using https://app.stepsecurity.io/secureworkflow/hzde0128/goimg/codeql-analysis.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:71: update your workflow using https://app.stepsecurity.io/secureworkflow/hzde0128/goimg/codeql-analysis.yml/master?enable=pin","Warn: containerImage not pinned by hash: Dockerfile:1","Info:   0 out of   4 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 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"}},{"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":"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 'master'"],"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":7,"reason":"SAST tool detected but not run on all commits","details":["Info: SAST configuration detected: CodeQL","Warn: 0 commits out of 6 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"}}]},"last_synced_at":"2025-08-19T15:17:52.081Z","repository_id":48882398,"created_at":"2025-08-19T15:17:52.082Z","updated_at":"2025-08-19T15:17:52.082Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28698909,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-23T17:25:48.045Z","status":"ssl_error","status_checked_at":"2026-01-23T17:25:47.153Z","response_time":59,"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":["goimg","image","img","server"],"created_at":"2026-01-23T19:35:02.632Z","updated_at":"2026-01-23T19:35:02.685Z","avatar_url":"https://github.com/hzde0128.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Goimg 轻量级的图片服务器\n\n## 简介\n\n* goImg是一个使用Golang语言编写的图片服务器\n\n* 目前只实现单文件上传\n\n* 支持 jpeg png gif 等图片上传\n\n* 请使用 Go1.10 以上\n\n## 功能特点\n\n* 文件存储目录采用md5算法生成\n\n* 目前支持 jpeg png 的缩略图，gif 暂不支持\n\n## 安装\n\n```bash\ngo get -u github.com/hzde0128/goimg\ncd $GOROOT/src/github.com/hzde0128/goimg\n``` \n\n## 获取图片\n\n* GET fb22e5e61756acd6c070065139186b7c_1578646180.jpg\n\n## 获取图片 并缩略，宽度=300 高度=100\n\n* GET fb22e5e61756acd6c070065139186b7c_1578646180.jpg?w=300\u0026h=100\n\n## 上传图片\n\n* POST  /\n\n* 表单参数: file\n\n* 返回值: json 主要是 imgid\n\n```json\n{\n    \"success\": true,\n    \"code\": 200,\n    \"msg\": \"OK\",\n    \"version\": \"v0.1.1\",\n    \"data\": {\n        \"size\": 42445,\n        \"mime\": \"jpg\",\n        \"imgid\": \"fb22e5e61756acd6c070065139186b7c_1578646180\",\n        \"imgstr\": \"fb22e5e61756acd6c070065139186b7c_1578646180.jpg\"\n    }\n}\n```\n\n## 获取图片信息\n\n* GET /info?imgid=fb22e5e61756acd6c070065139186b7c_1578646180.jpg\n\n* GET /info?imgid=fb22e5e61756acd6c070065139186b7c_1578646180.jpg\u0026w=300\u0026h=100\n\n* 返回值: json\n\n* 与 上传图片 的返回一致\n\n## 获取状态码\n\n* GET /statuscode\n\n* 返回值: json\n\n## 运行服务\n\n采用微服务的方式运行，支持从环境变量注入，默认端口8080，默认图片存储目录/data\n\n`SERVER_PORT=8080 IMAGE_PATH=img ./goimg`\n\n## `docker`运行`goimg`\n\n```bash\ndocker run -d -p 8080:8080 hzde0128/goimg:v1.0.0\n```\n\n使用自定义环境变量\n\n```bash\ndocker run -d -p 8080:18080 -e SERVER_PORT=18080 -e IMAGE_PATH=/image/ hzde0128/goimg:v1.0.0\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhzde0128%2Fgoimg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhzde0128%2Fgoimg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhzde0128%2Fgoimg/lists"}