{"id":38383003,"url":"https://github.com/tc-hib/winres","last_synced_at":"2026-01-17T03:40:01.718Z","repository":{"id":57562889,"uuid":"328413559","full_name":"tc-hib/winres","owner":"tc-hib","description":"Functions for embedding typical Windows resources into Go executables: icon, manifest, version info...","archived":false,"fork":false,"pushed_at":"2024-03-18T16:47:05.000Z","size":912,"stargazers_count":62,"open_issues_count":1,"forks_count":8,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-10-21T11:52:39.520Z","etag":null,"topics":["golang","rsrc","windows"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"0bsd","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tc-hib.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"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}},"created_at":"2021-01-10T15:21:12.000Z","updated_at":"2025-10-12T18:46:16.000Z","dependencies_parsed_at":"2024-02-11T16:43:08.114Z","dependency_job_id":"2d6687a6-c026-401c-bcef-2b65b554aad4","html_url":"https://github.com/tc-hib/winres","commit_stats":{"total_commits":49,"total_committers":4,"mean_commits":12.25,"dds":"0.12244897959183676","last_synced_commit":"bae858ad9c32978d161a2e37a46403b5a20fec76"},"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/tc-hib/winres","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tc-hib%2Fwinres","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tc-hib%2Fwinres/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tc-hib%2Fwinres/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tc-hib%2Fwinres/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tc-hib","download_url":"https://codeload.github.com/tc-hib/winres/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tc-hib%2Fwinres/sbom","scorecard":{"id":870407,"data":{"date":"2025-08-11","repo":{"name":"github.com/tc-hib/winres","commit":"bae858ad9c32978d161a2e37a46403b5a20fec76"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.3,"checks":[{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/go.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 2/27 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":"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":"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/go.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/tc-hib/winres/go.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/go.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/tc-hib/winres/go.yml/master?enable=pin","Warn: downloadThenRun not pinned by hash: .github/workflows/go.yml:29","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 downloadThenRun 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":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: BSD Zero Clause License: 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":"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":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"}},{"name":"Vulnerabilities","score":9,"reason":"1 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GO-2024-2937 / GHSA-9phm-fm57-rhg8"],"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-24T04:01:59.964Z","repository_id":57562889,"created_at":"2025-08-24T04:01:59.964Z","updated_at":"2025-08-24T04:01:59.964Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28493377,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T02:39:23.645Z","status":"ssl_error","status_checked_at":"2026-01-17T02:34:19.649Z","response_time":85,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["golang","rsrc","windows"],"created_at":"2026-01-17T03:40:01.649Z","updated_at":"2026-01-17T03:40:01.704Z","avatar_url":"https://github.com/tc-hib.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# winres\n\n[![Go Reference](https://pkg.go.dev/badge/github.com/tc-hib/winres.svg)](https://pkg.go.dev/github.com/tc-hib/winres)\n[![codecov](https://codecov.io/gh/tc-hib/winres/branch/master/graph/badge.svg?token=JURCYAY1N1)](https://codecov.io/gh/tc-hib/winres)\n[![Go Report](https://goreportcard.com/badge/github.com/tc-hib/winres)](https://goreportcard.com/report/github.com/tc-hib/winres)\n\nPackage winres provides functions for embedding resources in a Windows executable built with Go.\n\nMost often, you'll want to embed an application icon, a manifest, and \"version information\", which is what you can see\nin the Details tab of file properties.\n\n## Command line tool\n\nIf you are looking for a command line tool, please head to [go-winres](https://github.com/tc-hib/go-winres).\n\n## Alternatives\n\nThis project is similar to [akavel/rsrc](https://www.github.com/akavel/rsrc/)\nand [josephspurrier/goversioninfo](https://github.com/josephspurrier/goversioninfo).\n\n## Limitations\n\nThis is not a real resource compiler, which means it won't help you embed these UI definitions:\n\n* `ACCELERATORS`\n* `DIALOGEX`\n* `MENUEX`\n* `POPUP`\n\nIf you ever need them, which is unlikely, use one of those tools instead:\n\n* `rc.exe` and `cvtres.exe` from Visual Studio\n* `windres` from GNU Binary Utilities\n* `llvm-rc` and `llvm-cvtres` from LLVM tools\n\nSee [Resource Compiler](https://docs.microsoft.com/en-us/windows/win32/menurc/resource-compiler) for more information.\n\n## Usage\n\nTo embed resources, you need an `.rsrc` section in your executable. Winres provides functions to compile this `.rsrc`\nsection into a COFF object file.\n\nPut this file in your project directory, name it \"something.syso\" or, preferably,\n\"something_windows_amd64.syso\", and you're done :\nthe `go build` command will detect it and automatically use it.\n\nYou should have a look at the [command line tool](https://github.com/tc-hib/go-winres) to try it. Using the library\ngives you more control, though.\n\nHere is a quick example:\n\n```go\npackage main\n\nimport (\n\t\"io/ioutil\"\n\t\"os\"\n\n\t\"github.com/tc-hib/winres\"\n)\n\nfunc main() {\n\t// Start by creating an empty resource set\n\trs := winres.ResourceSet{}\n\n\t// Add resources\n\t// This is a cursor named ID(1)\n\tcursorData, _ := ioutil.ReadFile(\"cursor.cur\")\n\trs.Set(winres.RT_CURSOR, winres.ID(1), 0, cursorData)\n\n\t// This is a custom data type, translated in english (0x409) and french (0x40C)\n\t// You can find more language IDs by searching for LCID\n\trs.Set(winres.Name(\"CUSTOM\"), winres.Name(\"COOLDATA\"), 0x409, []byte(\"Hello World\"))\n\trs.Set(winres.Name(\"CUSTOM\"), winres.Name(\"COOLDATA\"), 0x40C, []byte(\"Bonjour Monde\"))\n\n\t// Compile to a COFF object file\n\t// It is recommended to use the target suffix \"_window_amd64\"\n\t// so that `go build` knows when not to include it.\n\tout, _ := os.Create(\"rsrc_windows_amd64.syso\")\n\trs.WriteObject(out, winres.ArchAMD64)\n}\n```\n\n## Thanks\n\nMany thanks to [akavel](https://github.com/akavel) for his help.\n\nThis project uses these very helpful libs:\n\n* [nfnt/resize](https://github.com/nfnt/resize) - pure Go image resizing\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftc-hib%2Fwinres","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftc-hib%2Fwinres","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftc-hib%2Fwinres/lists"}