{"id":38759838,"url":"https://github.com/fhopfensperger/async-messaging-client","last_synced_at":"2026-01-17T11:56:28.993Z","repository":{"id":38272251,"uuid":"352964800","full_name":"fhopfensperger/async-messaging-client","owner":"fhopfensperger","description":"A tool to sends and receive messages in an asynchronous way to / from different Cloud messaging services.","archived":false,"fork":false,"pushed_at":"2026-01-15T20:53:15.000Z","size":590,"stargazers_count":5,"open_issues_count":11,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-15T22:45:21.144Z","etag":null,"topics":["azure","gcp","golang","pubsub","servicebus"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fhopfensperger.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":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2021-03-30T10:43:43.000Z","updated_at":"2025-02-16T08:05:01.000Z","dependencies_parsed_at":"2024-05-28T23:57:31.373Z","dependency_job_id":"1f46bf75-8e60-4874-bd01-0ff5b644a2af","html_url":"https://github.com/fhopfensperger/async-messaging-client","commit_stats":null,"previous_names":[],"tags_count":23,"template":false,"template_full_name":null,"purl":"pkg:github/fhopfensperger/async-messaging-client","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fhopfensperger%2Fasync-messaging-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fhopfensperger%2Fasync-messaging-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fhopfensperger%2Fasync-messaging-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fhopfensperger%2Fasync-messaging-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fhopfensperger","download_url":"https://codeload.github.com/fhopfensperger/async-messaging-client/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fhopfensperger%2Fasync-messaging-client/sbom","scorecard":{"id":398701,"data":{"date":"2025-08-11","repo":{"name":"github.com/fhopfensperger/async-messaging-client","commit":"f9f9dd57151b9e99c2ebe9f7ec904b3db0151c63"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.8,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/1 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":"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":"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":"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":"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: Apache License 2.0: 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":"Pinned-Dependencies","score":1,"reason":"dependency not pinned by hash detected -- score normalized to 1","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/go.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/fhopfensperger/async-messaging-client/go.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/go.yml:24: update your workflow using https://app.stepsecurity.io/secureworkflow/fhopfensperger/async-messaging-client/go.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/go.yml:41: update your workflow using https://app.stepsecurity.io/secureworkflow/fhopfensperger/async-messaging-client/go.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/go.yml:57: update your workflow using https://app.stepsecurity.io/secureworkflow/fhopfensperger/async-messaging-client/go.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/go.yml:61: update your workflow using https://app.stepsecurity.io/secureworkflow/fhopfensperger/async-messaging-client/go.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/go.yml:65: update your workflow using https://app.stepsecurity.io/secureworkflow/fhopfensperger/async-messaging-client/go.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/go.yml:73: update your workflow using https://app.stepsecurity.io/secureworkflow/fhopfensperger/async-messaging-client/go.yml/main?enable=pin","Warn: containerImage not pinned by hash: Dockerfile:1","Warn: containerImage not pinned by hash: Dockerfile:9: pin your Docker image by updating alpine:3.21.3 to alpine:3.21.3@sha256:a8560b36e8b8210634f77d9f7f9efd7ffa463e380b75e2e74aff4511df3ef88c","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   5 third-party GitHubAction dependencies pinned","Info:   1 out of   1 goCommand dependencies pinned","Info:   0 out of   2 containerImage 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":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"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":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact v0.2.13 not signed: https://api.github.com/repos/fhopfensperger/async-messaging-client/releases/196438238","Warn: release artifact v0.2.12 not signed: https://api.github.com/repos/fhopfensperger/async-messaging-client/releases/162635329","Warn: release artifact v0.2.11 not signed: https://api.github.com/repos/fhopfensperger/async-messaging-client/releases/111402211","Warn: release artifact v0.2.10 not signed: https://api.github.com/repos/fhopfensperger/async-messaging-client/releases/98888039","Warn: release artifact v0.2.9 not signed: https://api.github.com/repos/fhopfensperger/async-messaging-client/releases/98425071","Warn: release artifact v0.2.13 does not have provenance: https://api.github.com/repos/fhopfensperger/async-messaging-client/releases/196438238","Warn: release artifact v0.2.12 does not have provenance: https://api.github.com/repos/fhopfensperger/async-messaging-client/releases/162635329","Warn: release artifact v0.2.11 does not have provenance: https://api.github.com/repos/fhopfensperger/async-messaging-client/releases/111402211","Warn: release artifact v0.2.10 does not have provenance: https://api.github.com/repos/fhopfensperger/async-messaging-client/releases/98888039","Warn: release artifact v0.2.9 does not have provenance: https://api.github.com/repos/fhopfensperger/async-messaging-client/releases/98425071"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Packaging","score":10,"reason":"packaging workflow detected","details":["Info: Project packages its releases by way of GitHub Actions.: .github/workflows/go.yml:13"],"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":"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":0,"reason":"13 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GO-2021-0052 / GHSA-h395-qcrw-5vmq","Warn: Project is vulnerable to: GHSA-3vp4-m3rf-835h","Warn: Project is vulnerable to: GO-2023-1737 / GHSA-2c4m-59x9-fr2g","Warn: Project is vulnerable to: GO-2025-3372 / GHSA-6wxm-mpqj-6jpf","Warn: Project is vulnerable to: GO-2024-2947 / GHSA-v6v8-xj6m-xwqh","Warn: Project is vulnerable to: GO-2025-3487 / GHSA-hcg3-q754-cr77","Warn: Project is vulnerable to: GO-2023-1572 / GHSA-qgc7-mgm3-q253","Warn: Project is vulnerable to: GO-2023-1990 / GHSA-j3p8-6mrq-6g7h","Warn: Project is vulnerable to: GO-2023-1989 / GHSA-x92r-3vfx-4cv3","Warn: Project is vulnerable to: GO-2024-2937 / GHSA-9phm-fm57-rhg8","Warn: Project is vulnerable to: GO-2025-3503 / GHSA-qxp5-gwg8-xv66","Warn: Project is vulnerable to: GO-2025-3595 / GHSA-vvgc-356p-c3xw","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"}}]},"last_synced_at":"2025-08-18T19:38:15.030Z","repository_id":38272251,"created_at":"2025-08-18T19:38:15.030Z","updated_at":"2025-08-18T19:38:15.030Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28508464,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T11:50:55.898Z","status":"ssl_error","status_checked_at":"2026-01-17T11:50:55.569Z","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":["azure","gcp","golang","pubsub","servicebus"],"created_at":"2026-01-17T11:56:28.865Z","updated_at":"2026-01-17T11:56:28.971Z","avatar_url":"https://github.com/fhopfensperger.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# async-messaging-client\n![Go](https://github.com/fhopfensperger/async-messaging-client/workflows/Go/badge.svg)\n[![Go Report Card](https://goreportcard.com/badge/github.com/fhopfensperger/async-messaging-client)](https://goreportcard.com/report/github.com/fhopfensperger/async-messaging-client)\n[![Release](https://img.shields.io/github/release/fhopfensperger/async-messaging-client.svg?style=flat-square)](https://github.com/fhopfensperger/async-messaging-client/releases/latest)\n\n\nSends and receives messages in an asynchronous way to / from different Cloud messaging services.\n\nCurrently, the following Cloud services are supported:\n- [Google Cloud Pub/Sub](https://cloud.google.com/pubsub)\n- [Azure Service Bus](https://azure.microsoft.com/en-us/services/service-bus/)\n\n## Installation\n### Linux / Mac OS\n\n### Homebrew\n\n```bash\nbrew install fhopfensperger/tap/async-messaging-client\n```\n\n#### Script\n\n```bash\ncurl https://raw.githubusercontent.com/fhopfensperger/async-messaging-client/main/get.sh | bash\n```\n\n#### Manually\n\nGo to [Releases](https://github.com/fhopfensperger/async-messaging-client/releases) download the latest release according to your processor architecture and operating system, then unzip and copy it to the right location\n\n```bash\ntar xvfz async-messaging-client_x.x.x_darwin_amd64.tar.gz\ncd async-messaging-client_x.x.x_darwin_amd64\nchmod +x async-messaging-client\nsudo mv async-messaging-client /usr/local/bin/\n```\n### Windows\n1. Go to [Releases](https://github.com/fhopfensperger/async-messaging-client/releases)\n2. Download the latest release async-messaging-client_x.x.x_windows_amd64.zip\n3. Use your favourite file archiver to unpack the archive\n4. *Optional* Add the `async-messaging-client.exe` to your `PATH`\n\n### Run as container\n\nBesides installing the binary on the local computer, you have the option to run the program as a container\n```bash\n# Sending a string message \ndocker run -it -rm ghcr.io/fhopfensperger/async-messaging-client sb send -q myQueueName -c \"Endpoint...\" hello\n# Sending a json file\ndocker run -it --rm -v $(pwd)/test.json:/app/test.json ghcr.io/fhopfensperger/async-messaging-client sb send -f test.json -q myQueueName -c \"Endpoint...\"\n# Define environment variable\ndocker run -it --rm -e QUEUE=myQueueName ghcr.io/fhopfensperger/async-messaging-client sb receive -c \"Endpoint...\"\n```\n\n## Usage Examples:\n\n### Google Pub/Sub\n\n---\n**NOTE**\nBefore publishing message to a Pub/Sub topic and/ or subscribing to a subscription it is important to set proper authentication.\n___\n\n#### Print usage:\n````bash\n$ async-messaging-client pubsub --help\nInteract with Google Cloud Pub/Sub\n\nUsage:\n  async-messaging-client pubsub [command]\n\nAvailable Commands:\n  publish     Publish a message to a Google Pub/Sub Topic\n  subscribe   Subscribe to a Google Pub/Sub Subscription\n\nFlags:\n  -h, --help             help for pubsub\n  -p, --project string   Google Cloud Project ID\n  -t, --topic string     Google Cloud Pub/Sub Topic\n\nUse \"async-messaging-client pubsub [command] --help\" for more information about a command.\n````\n\n#### Authentication\n1. Create a service account and assign proper permissions in the Google Cloud Platform console\n2. Download the service account key\n3. Set environment variable GOOGLE_APPLICATION_CREDENTIALS\nFor Linux / Mac OS\n```bash\nexport GOOGLE_APPLICATION_CREDENTIALS=/path/to/service-account-key.json\n```\nFor Windows\n```cmd\nset GOOGLE_APPLICATION_CREDENTIALS=C:\\Path\\to\\service-account-key.json\n```\n\n#### Publishing (Sending)\n**Local files**\n```bash\n# Content of test.json\n{\n  \"prop1\": 123,\n  \"prop2\": \"456\",\n  \"prop3\": \"789\",\n  \"prop4\": {\n    \"prop1\": 123,\n    \"prop2\": \"456\",\n    \"propArray\": [\n      \"456\", \"789\", \"0\"\n    ]\n  }\n}\n\n# Content of attributes.json\n{\n  \"eventType\": \"this.is.a.sample.event.type\",\n  \"dispatcherId\": \"this.is.a.sample.id\",\n  \"schemaVersion\": \"v1\"\n}\n```\nSend message (test.json) with attributes (attributes.json) to a topic `topic-test`\n```bash\n$ async-messaging-client pubsub publish -p google-project-id -t topic-test -f test.json -a attributes.json\n2021-04-08T14:33:17+02:00 INF Trying to send message: \n{\n  \"prop1\": 123,\n  \"prop2\": \"456\",\n  \"prop3\": \"789\",\n  \"prop4\": {\n    \"prop1\": 123,\n    \"prop2\": \"456\",\n    \"propArray\": [\n      \"456\", \"789\", \"0\"\n    ]\n  }\n}\nwith attributes: map[string]string{\"dispatcherId\":\"this.is.a.sample.id\", \"eventType\":\"this.is.a.sample.event.type\", \"schemaVersion\":\"v1\"}\nto topic: topic-test for project: google-project-id\n2021-04-08T14:33:18+02:00 INF Successfully published message with msgId: 2258869234167928 to projects/google-project-id/topics/topic-test \n```\n\n**Simple Strings**\n```bash\n$ async-messaging-client pubsub publish -p google-project-id message-string\n```\n#### Subscribing (Receiving)\n\nTo receive message which are sent to a topic using a subscription and acknowledge them right away\n```bash\n$ async-messaging-client pubsub subscribe -p google-project-id -s test-sub\n2021-04-08T14:36:08+02:00 INF Subscribing to test-sub on project google-project-id\n\n2021-04-08T14:36:29+02:00 INF Got message: {\n  \"prop1\": 123,\n  \"prop2\": \"456\",\n  \"prop3\": \"789\",\n  \"prop4\": {\n    \"prop1\": 123,\n    \"prop2\": \"456\",\n    \"propArray\": [\n      \"456\", \"789\", \"0\"\n    ]\n  }\n}, from projects/google-project-id/subscriptions/test-sub with attributes map[string]string{\"dispatcherId\":\"this.is.a.sample.id\", \"eventType\":\"this.is.a.sample.event.type\", \"schemaVersion\":\"v1\"} with message id 2258869234167928\n```\n\n---\n### Azure Service Bus\n\n```json\n# Content of test.json\n{ \"key1\": \"value1\", \"key2\": \"value2\", \"message\" }\n```\n##### **Sending**\n```bash\nasync-messaging-client sb send -f test.json -q myQueueName -c \"Endpoint=sb://host.servicebus.windows.net/;SharedAccessKeyName=...\"\n```\n##### **Receiving one message**\n```bash\nasync-messaging-client sb receive -q myQueueName -c \"Endpoint=sb://host.servicebus.windows.net/;SharedAccessKeyName=...\"\n```\n\n##### **Receiving for a specific duration**\n```bash\nasync-messaging-client sb receive -d 10m -q myQueueName -c \"Endpoint=sb://host.servicebus.windows.net/;SharedAccessKeyName=...\"\n```\n\n### Option 2 (using environment variables)\n##### **Setting environment variables**\n```bash\nexport CONNECTION_STRING='Endpoint=sb:...'\nexport QUEUE=\"myQueueName\"\n```\n##### **Sending**\n```bash\nasync-messaging-client sb send -f test.json \n```\n##### **Receiving**\n```bash\nasync-messaging-client sb receive -d 1h\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffhopfensperger%2Fasync-messaging-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffhopfensperger%2Fasync-messaging-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffhopfensperger%2Fasync-messaging-client/lists"}