{"id":17682348,"url":"https://github.com/moba1/dotsetup","last_synced_at":"2026-05-01T12:32:06.947Z","repository":{"id":47787641,"uuid":"383201732","full_name":"moba1/dotsetup","owner":"moba1","description":"golang library for dotfiles setup","archived":false,"fork":false,"pushed_at":"2022-08-20T13:11:30.000Z","size":67,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"develop","last_synced_at":"2025-10-07T21:31:37.271Z","etag":null,"topics":["cc0","dotfiles","golang","golang-library","linux","public-domain"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"cc0-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/moba1.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}},"created_at":"2021-07-05T16:25:32.000Z","updated_at":"2022-08-20T12:57:50.000Z","dependencies_parsed_at":"2022-08-27T07:31:47.761Z","dependency_job_id":null,"html_url":"https://github.com/moba1/dotsetup","commit_stats":null,"previous_names":[],"tags_count":19,"template":false,"template_full_name":null,"purl":"pkg:github/moba1/dotsetup","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moba1%2Fdotsetup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moba1%2Fdotsetup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moba1%2Fdotsetup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moba1%2Fdotsetup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/moba1","download_url":"https://codeload.github.com/moba1/dotsetup/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moba1%2Fdotsetup/sbom","scorecard":{"id":655276,"data":{"date":"2025-08-11","repo":{"name":"github.com/moba1/dotsetup","commit":"b78cdb704e53361d65d8830de53c17cfe125a77c"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.8,"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 0/13 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":"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":"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":"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":"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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/lint.yml:1","Warn: no topLevel permission defined: .github/workflows/test.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":"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/lint.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/moba1/dotsetup/lint.yml/develop?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/lint.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/moba1/dotsetup/lint.yml/develop?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:35: update your workflow using https://app.stepsecurity.io/secureworkflow/moba1/dotsetup/test.yml/develop?enable=pin","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 third-party GitHubAction 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":"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":"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":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Creative Commons Zero v1.0 Universal: 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":"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":"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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 30 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-21T14:29:00.870Z","repository_id":47787641,"created_at":"2025-08-21T14:29:00.870Z","updated_at":"2025-08-21T14:29:00.870Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32497810,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"online","status_checked_at":"2026-05-01T02:00:05.856Z","response_time":64,"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":["cc0","dotfiles","golang","golang-library","linux","public-domain"],"created_at":"2024-10-24T09:13:35.937Z","updated_at":"2026-05-01T12:32:06.928Z","avatar_url":"https://github.com/moba1.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"![test](https://github.com/moba1/dotsetup/actions/workflows/test.yml/badge.svg)\n\n# dotsetup\n\ndotsetup is a library for seting up dotfiles.\n\nThis library use `sudo` \u0026 `curl` command internally.\n\nThis library setup dotfiles by combining `task` and finally executing all tasks..\n`task` represents execution entity corresponding one line shell command.\nFor exmaple, `dotsetup.Curl` corresponds to `curl` command.\n\n## Quick examples\n\nThis sample executes series of process to\n\n1. install `sample-package`\n1. fetch `index.html` from `example.com`\n\n```go\nimport (\n\t\"github.com/moba1/dotsetup/v3\"\n\t\"log\"\n)\n\n// set `sample-package` installing task\nsp := dotsetup.Package{\n\tName: \"sample-package\"\n}\n// set fetching index.html to /tmp\nc := dotsetup.Curl{\n\tArgs: []string{\"-o\", \"/tmp/index.html\", \"https://example.com/index.html\"}\n}\n// execute all tasks\n// order: sp -\u003e c\ns := dotsetup.NewScript([]dotsetup.Task{sp, c})\n// enable debug mode\ns.Debug = true\nif err := s.Execute(\"sudo password\"); err != nil {\n\tlog.Fatal(err)\n}\n```\n\n## Runnning Tests\n```bash\n$ go test -v ./...\n```\n\nSuccess of this test will be determined by the environment.\nNow, test supported OS are\n\n- Debian\n- CentOS (8~)\n- Fedora\n- Arch Linux\n- OpenSUSE tumbleweed/leap\n- Ubuntu\n- Gentoo\n\n## Task\n\n`task` represents shell command.\n\n### `Package` task\n\ninstall package.\n\n| Property | type | description |\n|:--------:|:----:|:-----------:|\n| Name     | string | target package name |\n\n```go\nimport \"github.com/moba1/dotsetup/v3\"\n\n// install `sample-package`\np := dotsetup.Package{\n\tName: \"sample-package\"\n}\n```\n\n### `Curl` task\n\nThis task represents `curl` command.\n\n| Property | type | description |\n|:--------:|:----:|:-----------:|\n| Args     | []string | `curl` command arguments |\n\n```go\nimport \"github.com/moba1/dotsetup/v3\"\n\n// execute `curl -o /tmp/sample.txt https://github.com`\nc := dotsetup.Curl{\n\tArgs: []string{\n\t\t\"-o\", \"/tmp/sample.txt\", \"https://github.com\"\n\t}\n}\n```\n\n### `Directory` task\n\ncreate directory.\n\n| Property | type | description |\n|:--------:|:----:|:-----------:|\n| Path     | string | directory path |\n| Mode     | string | directory mode |\n\n```go\nimport \"github.com/moba1/dotsetup/v3\"\n\n// create `/tmp/directory` directory with mode \"rwxr-xr-x\"\nd := dotsetup.Directory{\n\tPath: \"/tmp/directory\"\n\tMode: \"755\"\n}\n```\n\n### `Execute` task\n\nexecute shell command.\n\n| Property | type | description |\n|:--------:|:----:|:-----------:|\n| RawCommands | []dotsetup.ExecuteCommand | shell commands |\n\n```go\nimport \"github.com/moba1/dotsetup/v3\"\n\n// execute `sudo -S ls -l`\ne := dotsetup.Execute{\n\tRawCommands: []dotsetup.ExecuteCommand{\n\t\tRawCommand: dotsetup.RawCommand{\"ls\", \"-l\"},\n\t\tDoRoot: true\n\t},\n}\n```\n\n### `Link` task\n\ncreate symbolic link.\n\n| Property | type | description |\n|:--------:|:----:|:-----------:|\n| Source   | string | source path |\n| Destination | string | destination path |\n| Force    | set force mode |\n\n```go\nimport \"github.com/moba1/dotsetup/v3\"\n\n// put symbolic link from `/dev/null` to `/tmp/null`\nl := dotsetup.Link{\n\tSource: \"/dev/null\"\n\tDestination: \"/tmp/null\"\n\tForce: true\n}\n```\n\n## `Os` var\n`Os` var is os name.\n\nIf runtime is Linux, `Os` var is equal to `/etc/os-release`'s `ID` var.\nIn other runtime, equal to `runtime.GOOS`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoba1%2Fdotsetup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmoba1%2Fdotsetup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoba1%2Fdotsetup/lists"}