{"id":43379120,"url":"https://github.com/libdns/digitalocean","last_synced_at":"2026-02-02T07:45:11.409Z","repository":{"id":40189562,"uuid":"281269375","full_name":"libdns/digitalocean","owner":"libdns","description":null,"archived":false,"fork":false,"pushed_at":"2023-07-28T22:36:59.000Z","size":12,"stargazers_count":10,"open_issues_count":2,"forks_count":14,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-06-18T18:32:48.393Z","etag":null,"topics":[],"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/libdns.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":"2020-07-21T01:56:03.000Z","updated_at":"2024-03-06T07:26:32.000Z","dependencies_parsed_at":"2024-06-18T18:14:43.441Z","dependency_job_id":"91447d30-6aa0-4a72-85e4-cb3cba42f1df","html_url":"https://github.com/libdns/digitalocean","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/libdns/digitalocean","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/libdns%2Fdigitalocean","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/libdns%2Fdigitalocean/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/libdns%2Fdigitalocean/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/libdns%2Fdigitalocean/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/libdns","download_url":"https://codeload.github.com/libdns/digitalocean/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/libdns%2Fdigitalocean/sbom","scorecard":{"id":587826,"data":{"date":"2025-08-11","repo":{"name":"github.com/libdns/digitalocean","commit":"dfa7af5c2e31f8e8d47bfbfaf1c2e09ba0b721ba"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.7,"checks":[{"name":"Code-Review","score":5,"reason":"Found 5/9 approved changesets -- score normalized to 5","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":"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":"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":1,"reason":"1 commit(s) and 1 issue activity found in the last 90 days -- score normalized to 1","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"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":"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":"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":"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: MIT 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":"Vulnerabilities","score":9,"reason":"1 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GO-2025-3488 / GHSA-6v2p-p543-phr9"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 16 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"}}]},"last_synced_at":"2025-08-20T21:03:16.730Z","repository_id":40189562,"created_at":"2025-08-20T21:03:16.731Z","updated_at":"2025-08-20T21:03:16.731Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29007316,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-02T06:37:10.400Z","status":"ssl_error","status_checked_at":"2026-02-02T06:37:09.383Z","response_time":58,"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":[],"created_at":"2026-02-02T07:45:10.730Z","updated_at":"2026-02-02T07:45:11.401Z","avatar_url":"https://github.com/libdns.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DigitalOcean for `libdns`\n\n[![godoc reference](https://img.shields.io/badge/godoc-reference-blue.svg)](https://pkg.go.dev/github.com/libdns/digitalocean)\n\n\nThis package implements the libdns interfaces for the [DigitalOcean API](https://developers.digitalocean.com/documentation/v2/#domains) (using the Go implementation from: https://github.com/digitalocean/godo)\n\n## Authenticating\n\nTo authenticate you need to supply a DigitalOcean API token.\n\n## Example\n\nHere's a minimal example of how to get all your DNS records using this `libdns` provider (see `_example/main.go`)\n\n```go\npackage main\n\nimport (\n\t\"context\"\n\t\"fmt\"\n\t\"os\"\n\t\"time\"\n\n\t\"github.com/libdns/digitalocean\"\n\t\"github.com/libdns/libdns\"\n)\n\nfunc main() {\n\ttoken := os.Getenv(\"DO_AUTH_TOKEN\")\n\tif token == \"\" {\n\t\tfmt.Printf(\"DO_AUTH_TOKEN not set\\n\")\n\t\treturn\n\t}\n\tzone := os.Getenv(\"ZONE\")\n\tif zone == \"\" {\n\t\tfmt.Printf(\"ZONE not set\\n\")\n\t\treturn\n\t}\n\t// NOTE: when `DELETE_ENTRIES` is set to `1`, the script will delete the created entries\n\tdeleteEntries := os.Getenv(\"DELETE_ENTRIES\") == \"1\"\n\tprovider := digitalocean.Provider{APIToken: token}\n\n\trecords, err := provider.GetRecords(context.TODO(), zone)\n\tif err != nil {\n\t\tfmt.Printf(\"ERROR: %s\\n\", err.Error())\n\t}\n\n\ttxtTestName := \"libdns-test-txt\"\n\ttxtTestId := \"\"\n\taTestName := \"libdns-test-a\"\n\taTestId := \"\"\n\tfor _, record := range records {\n\t\tfmt.Printf(\"%s (.%s): %s, %s\\n\", record.RR().Name, zone, record.RR().Data, record.RR().Type)\n\t\tif record.RR().Name == txtTestName {\n\t\t\ttxtTestId = record.(digitalocean.DNS).ID\n\t\t} else if record.RR().Name == aTestName {\n\t\t\taTestId = record.(digitalocean.DNS).ID\n\t\t}\n\t}\n\n\tif txtTestId != \"\" \u0026\u0026 aTestId != \"\" {\n\t\tif deleteEntries {\n\t\t\tfmt.Printf(\"Delete entry for %s (id:%s)\\n\", txtTestName, txtTestId)\n\t\t\t_, err = provider.DeleteRecords(context.TODO(), zone, []libdns.Record{digitalocean.DNS{ID: txtTestId}})\n\t\t\tif err != nil {\n\t\t\t\tfmt.Printf(\"ERROR: %s\\n\", err.Error())\n\t\t\t}\n\t\t\tfmt.Printf(\"Delete entry for %s (id:%s)\\n\", aTestName, aTestId)\n\t\t\t_, err = provider.DeleteRecords(context.TODO(), zone, []libdns.Record{digitalocean.DNS{ID: aTestId}})\n\t\t\tif err != nil {\n\t\t\t\tfmt.Printf(\"ERROR: %s\\n\", err.Error())\n\t\t\t}\n\t\t} else {\n\t\t\tfmt.Printf(\"Replacing entry for %s\\n\", txtTestName)\n\t\t\t_, err = provider.SetRecords(context.TODO(), zone, []libdns.Record{digitalocean.DNS{\n\t\t\t\tRecord: libdns.RR{\n\t\t\t\t\tType: \"TXT\",\n\t\t\t\t\tName: txtTestName,\n\t\t\t\t\tData: fmt.Sprintf(\"Replacement test entry created by libdns %s\", time.Now()),\n\t\t\t\t\tTTL:  time.Duration(30) * time.Second,\n\t\t\t\t},\n\t\t\t\tID: txtTestId,\n\t\t\t}})\n\t\t\tif err != nil {\n\t\t\t\tfmt.Printf(\"ERROR: %s\\n\", err.Error())\n\t\t\t}\n\t\t\tfmt.Printf(\"Replacing entry for %s\\n\", aTestName)\n\t\t\t_, err = provider.SetRecords(context.TODO(), zone, []libdns.Record{digitalocean.DNS{\n\t\t\t\tRecord: libdns.RR{\n\t\t\t\t\tType: \"A\",\n\t\t\t\t\tName: aTestName,\n\t\t\t\t\tData: \"127.0.0.1\",\n\t\t\t\t\tTTL:  time.Duration(30) * time.Second,\n\t\t\t\t},\n\t\t\t\tID: aTestId,\n\t\t\t}})\n\t\t\tif err != nil {\n\t\t\t\tfmt.Printf(\"ERROR: %s\\n\", err.Error())\n\t\t\t}\n\t\t}\n\t} else {\n\t\tfmt.Printf(\"Creating new entry for %s\\n\", txtTestName)\n\t\t_, err = provider.AppendRecords(context.TODO(), zone, []libdns.Record{libdns.RR{\n\t\t\tType: \"TXT\",\n\t\t\tName: txtTestName,\n\t\t\tData: fmt.Sprintf(\"This is a test entry created by libdns %s\", time.Now()),\n\t\t\tTTL:  time.Duration(30) * time.Second,\n\t\t}})\n\t\tif err != nil {\n\t\t\tfmt.Printf(\"ERROR: %s\\n\", err.Error())\n\t\t}\n\t\tfmt.Printf(\"Creating new entry for %s\\n\", aTestName)\n\t\t_, err = provider.AppendRecords(context.TODO(), zone, []libdns.Record{libdns.RR{\n\t\t\tType: \"A\",\n\t\t\tName: aTestName,\n\t\t\tData: \"127.0.0.1\",\n\t\t\tTTL:  time.Duration(30) * time.Second,\n\t\t}})\n\t\tif err != nil {\n\t\t\tfmt.Printf(\"ERROR: %s\\n\", err.Error())\n\t\t}\n\t}\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flibdns%2Fdigitalocean","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flibdns%2Fdigitalocean","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flibdns%2Fdigitalocean/lists"}