{"id":13722297,"url":"https://github.com/hectane/go-acl","last_synced_at":"2026-03-17T19:34:27.904Z","repository":{"id":47056430,"uuid":"45215765","full_name":"hectane/go-acl","owner":"hectane","description":"Go library for manipulating ACLs on Windows","archived":false,"fork":false,"pushed_at":"2023-02-25T03:12:52.000Z","size":37,"stargazers_count":123,"open_issues_count":6,"forks_count":29,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-05-07T14:38:45.867Z","etag":null,"topics":["acl","chmod","golang","permissions"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hectane.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2015-10-29T23:01:52.000Z","updated_at":"2025-04-29T07:43:25.000Z","dependencies_parsed_at":"2024-01-13T12:22:09.027Z","dependency_job_id":"643d143b-cc70-4e3b-bec7-51d2c1d54cbd","html_url":"https://github.com/hectane/go-acl","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hectane/go-acl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hectane%2Fgo-acl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hectane%2Fgo-acl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hectane%2Fgo-acl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hectane%2Fgo-acl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hectane","download_url":"https://codeload.github.com/hectane/go-acl/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hectane%2Fgo-acl/sbom","scorecard":{"id":459378,"data":{"date":"2025-08-11","repo":{"name":"github.com/hectane/go-acl","commit":"ca0b05cb1adbf3d91585d8acab7bc804ee0b8583"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.6,"checks":[{"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":"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":"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":"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":"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.txt:0","Info: FSF or OSI recognized license: MIT License: LICENSE.txt: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":-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 12 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-2022-0493 / GHSA-p782-xgp4-8hr8"],"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-19T10:41:24.880Z","repository_id":47056430,"created_at":"2025-08-19T10:41:24.880Z","updated_at":"2025-08-19T10:41:24.880Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30629551,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-17T17:32:55.572Z","status":"ssl_error","status_checked_at":"2026-03-17T17:32:38.732Z","response_time":56,"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":["acl","chmod","golang","permissions"],"created_at":"2024-08-03T01:01:27.037Z","updated_at":"2026-03-17T19:34:27.879Z","avatar_url":"https://github.com/hectane.png","language":"Go","funding_links":[],"categories":["Windows Specific"],"sub_categories":[],"readme":"## go-acl\n\n[![Build status](https://ci.appveyor.com/api/projects/status/rbdyu7c39o2j0ru9?svg=true)](https://ci.appveyor.com/project/nathan-osman/go-acl)\n[![GoDoc](https://godoc.org/github.com/hectane/go-acl?status.svg)](https://godoc.org/github.com/hectane/go-acl)\n[![MIT License](http://img.shields.io/badge/license-MIT-9370d8.svg?style=flat)](http://opensource.org/licenses/MIT)\n\nManipulating ACLs (Access Control Lists) on Windows is difficult. go-acl wraps the Windows API functions that control access to objects, simplifying the process.\n\n### Using the Package\n\nTo use the package add the following imports:\n\n    import (\n        \"github.com/hectane/go-acl\"\n        \"golang.org/x/sys/windows\"\n    )\n\n### Examples\n\nProbably the most commonly used function in this package is `Chmod`:\n\n    if err := acl.Chmod(\"C:\\\\path\\\\to\\\\file.txt\", 0755); err != nil {\n        panic(err)\n    }\n\nTo grant read access to user \"Alice\" and deny write access to user \"Bob\":\n\n    if err := acl.Apply(\n        \"C:\\\\path\\\\to\\\\file.txt\",\n        false,\n        false,\n        acl.GrantName(windows.GENERIC_READ, \"Alice\"),\n        acl.DenyName(windows.GENERIC_WRITE, \"Bob\"),\n    ); err != nil {\n        panic(err)\n    }\n\n### Using the API Directly\n\ngo-acl's `api` package exposes the individual Windows API functions that are used to manipulate ACLs. For example, to retrieve the current owner of a file:\n\n    import (\n        \"github.com/hectane/go-acl/api\"\n        \"golang.org/x/sys/windows\"\n    )\n\n    var (\n        owner   *windows.SID\n        secDesc windows.Handle\n    )\n    err := api.GetNamedSecurityInfo(\n        \"C:\\\\path\\\\to\\\\file.txt\",\n        api.SE_FILE_OBJECT,\n        api.OWNER_SECURITY_INFORMATION,\n        \u0026owner,\n        nil,\n        nil,\n        nil,\n        \u0026secDesc,\n    )\n    if err != nil {\n        panic(err)\n    }\n    defer windows.LocalFree(secDesc)\n\n`owner` will then point to the SID for the owner of the file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhectane%2Fgo-acl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhectane%2Fgo-acl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhectane%2Fgo-acl/lists"}