{"id":36808769,"url":"https://github.com/heltonmarx/goami","last_synced_at":"2026-01-12T13:43:02.836Z","repository":{"id":589717,"uuid":"12423084","full_name":"heltonmarx/goami","owner":"heltonmarx","description":"Asterisk Manager Interface (AMI) client in Go","archived":false,"fork":false,"pushed_at":"2025-04-07T08:48:56.000Z","size":189,"stargazers_count":48,"open_issues_count":5,"forks_count":35,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-08-13T23:47:04.488Z","etag":null,"topics":["ami","asterisk","go"],"latest_commit_sha":null,"homepage":"","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/heltonmarx.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":"2013-08-28T02:51:09.000Z","updated_at":"2025-06-03T03:43:10.000Z","dependencies_parsed_at":"2024-06-18T18:18:58.682Z","dependency_job_id":"ec7ff28a-3875-45f5-ab85-67cad6d73d0f","html_url":"https://github.com/heltonmarx/goami","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/heltonmarx/goami","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heltonmarx%2Fgoami","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heltonmarx%2Fgoami/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heltonmarx%2Fgoami/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heltonmarx%2Fgoami/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/heltonmarx","download_url":"https://codeload.github.com/heltonmarx/goami/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heltonmarx%2Fgoami/sbom","scorecard":{"id":460865,"data":{"date":"2025-08-11","repo":{"name":"github.com/heltonmarx/goami","commit":"13fa30bbc4e385f57104136441a4ddee2a2ab46a"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4,"checks":[{"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":"Code-Review","score":5,"reason":"Found 15/26 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":"Pinned-Dependencies","score":2,"reason":"dependency not pinned by hash detected -- score normalized to 2","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/go.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/heltonmarx/goami/go.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/go.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/heltonmarx/goami/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:   1 out of   1 goCommand 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":"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":"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":"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":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact v1.0.0 not signed: https://api.github.com/repos/heltonmarx/goami/releases/151177","Warn: release artifact v1.0.0 does not have provenance: https://api.github.com/repos/heltonmarx/goami/releases/151177"],"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":"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"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 23 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-19T11:06:14.650Z","repository_id":589717,"created_at":"2025-08-19T11:06:14.650Z","updated_at":"2025-08-19T11:06:14.650Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28339343,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T12:22:26.515Z","status":"ssl_error","status_checked_at":"2026-01-12T12:22:10.856Z","response_time":98,"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":["ami","asterisk","go"],"created_at":"2026-01-12T13:43:02.298Z","updated_at":"2026-01-12T13:43:02.813Z","avatar_url":"https://github.com/heltonmarx.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"goami\n=====\nAsterisk Manager Interface (AMI) client in Go.\n\n## About\nThis code is based on C [libami](http://sourceforge.net/projects/amsuite/files/libami/) library interface\n\n## Installation and Requirements\n\nThe following command will install the AMI client.\n\n```sh\ngo get -u github.com/heltonmarx/goami/ami\n```\n\nTo test this package with Asterisk it's necessary set the file `/etc/asterisk/manager.conf` with configuration bellow:\n\n    [general]\n    enabled = yes\n    port = 5038\n    bindaddr = 127.0.0.1\n\n    [admin]\n    secret = admin\n    deny = 0.0.0.0/0.0.0.0\n    permit = 127.0.0.1/255.255.255.255\n    read = all,system,call,log,verbose,command,agent,user,config\n    write = all,system,call,log,verbose,command,agent,user,config\n\n## Using the code\n\nLogin/Logoff:\n```Go\npackage main\n\nimport (\n\t\"flag\"\n\t\"fmt\"\n\t\"log\"\n\n\t\"github.com/heltonmarx/goami/ami\"\n)\n\nvar (\n\tusername = flag.String(\"username\", \"admin\", \"AMI username\")\n\tsecret   = flag.String(\"secret\", \"admin\", \"AMI secret\")\n\thost     = flag.String(\"host\", \"127.0.0.1:5038\", \"AMI host address\")\n)\n\nfunc main() {\n\tflag.Parse()\n\n\tctx, cancel := context.WithCancel(context.Background())\n\tdefer cancel()\n\n\tsocket, err := ami.NewSocket(ctx, *host)\n\tif err != nil {\n\t\tlog.Fatalf(\"socket error: %v\\n\", err)\n\t}\n\tif _, err := ami.Connect(ctx, socket); err != nil {\n\t\tlog.Fatalf(\"connect error: %v\\n\", err)\n\t}\n\t//Login\n\tuuid, _ := ami.GetUUID()\n\tif err := ami.Login(ctx, socket, *username, *secret, \"Off\", uuid); err != nil {\n\t\tlog.Fatalf(\"login error: %v\\n\", err)\n\t}\n\tfmt.Printf(\"login ok!\\n\")\n\n\t//Logoff\n\tfmt.Printf(\"logoff\\n\")\n\tif err := ami.Logoff(ctx, socket, uuid); err != nil {\n\t\tlog.Fatalf(\"logoff error: (%v)\\n\", err)\n\t}\n\tfmt.Printf(\"goodbye !\\n\")\n}\n```\n\n## Documentation\n\nThis projects documentation can be found on godoc at [goami](http://godoc.org/github.com/heltonmarx/goami/ami)\nand supports:\n - *master*: [Asterisk 14 AMI Actions](https://wiki.asterisk.org/wiki/display/AST/Asterisk+14+AMI+Actions)\n - ami.v10: [Asterisk 10 AMI Actions](https://wiki.asterisk.org/wiki/display/AST/Asterisk+10+AMI+Actions)\n - ami.v13: [Asterisk 13 AMI Actions](https://wiki.asterisk.org/wiki/display/AST/Asterisk+13+AMI+Actions)\n - ami.v14: [Asterisk 14 AMI Actions](https://wiki.asterisk.org/wiki/display/AST/Asterisk+14+AMI+Actions)\n\n## License\n\nMIT-LICENSE. See [LICENSE](https://github.com/heltonmarx/goami/blob/master/LICENSE)\nor the LICENSE file provided in the repository for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheltonmarx%2Fgoami","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fheltonmarx%2Fgoami","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheltonmarx%2Fgoami/lists"}