{"id":36801909,"url":"https://github.com/deepaksinghvi/catalogwf","last_synced_at":"2026-01-12T13:34:47.791Z","repository":{"id":47745067,"uuid":"389372560","full_name":"deepaksinghvi/catalogwf","owner":"deepaksinghvi","description":"Catalog processing using workflow orchestration for workflow execution in a Kubernetes pods using Argo Workflow.","archived":false,"fork":false,"pushed_at":"2021-09-10T04:17:11.000Z","size":9485,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2023-09-13T09:12:20.992Z","etag":null,"topics":["argo-workflow","argo-workflows","cli","cobra","go-gin","golang","katacoda","kubernetes","kubernetes-cluster","minikube","restful-webservices"],"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/deepaksinghvi.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-25T14:55:09.000Z","updated_at":"2021-09-10T04:17:14.000Z","dependencies_parsed_at":"2022-08-26T23:11:07.315Z","dependency_job_id":null,"html_url":"https://github.com/deepaksinghvi/catalogwf","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"purl":"pkg:github/deepaksinghvi/catalogwf","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deepaksinghvi%2Fcatalogwf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deepaksinghvi%2Fcatalogwf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deepaksinghvi%2Fcatalogwf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deepaksinghvi%2Fcatalogwf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/deepaksinghvi","download_url":"https://codeload.github.com/deepaksinghvi/catalogwf/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deepaksinghvi%2Fcatalogwf/sbom","scorecard":{"id":331913,"data":{"date":"2025-08-11","repo":{"name":"github.com/deepaksinghvi/catalogwf","commit":"ae8e669522139a020af665c6d08c17695e9f4711"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.1,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/7 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":"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":"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":"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":"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":"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":"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":"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 6 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":"Pinned-Dependencies","score":3,"reason":"dependency not pinned by hash detected -- score normalized to 3","details":["Warn: containerImage not pinned by hash: Dockerfile:1: pin your Docker image by updating golang:1.16 to golang:1.16@sha256:5f6a4662de3efc6d6bb812d02e9de3d8698eea16b8eb7281f03e6f3e8383018e","Warn: goCommand not pinned by hash: vendor/github.com/json-iterator/go/build.sh:10","Warn: goCommand not pinned by hash: vendor/github.com/pelletier/go-toml/benchmark.sh:10","Warn: goCommand not pinned by hash: vendor/github.com/pelletier/go-toml/fuzzit.sh:9","Warn: downloadThenRun not pinned by hash: vendor/github.com/pelletier/go-toml/fuzzit.sh:26","Info:   0 out of   1 containerImage dependencies pinned","Info:   3 out of   6 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":"Vulnerabilities","score":0,"reason":"46 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GO-2022-0388 / GHSA-6c73-2v8x-qpvm","Warn: Project is vulnerable to: GO-2022-0928 / GHSA-h563-xh25-x54q","Warn: Project is vulnerable to: GO-2022-0405 / GHSA-prqf-xr2j-xf65","Warn: Project is vulnerable to: GHSA-cmv8-6362-r5w9","Warn: Project is vulnerable to: GO-2020-0001 / GHSA-6vm3-jj99-7229","Warn: Project is vulnerable to: GHSA-869c-j7wc-8jqv","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-2021-0064","Warn: Project is vulnerable to: GO-2022-0493 / GHSA-p782-xgp4-8hr8","Warn: Project is vulnerable to: GO-2022-0536 / GHSA-39qc-96h7-956f / GHSA-hgr8-6h9x-f7q9","Warn: Project is vulnerable to: GO-2022-0236 / GHSA-h86h-8ppg-mxmh","Warn: Project is vulnerable to: GO-2021-0238 / GHSA-83g2-8m93-v3w7","Warn: Project is vulnerable to: GO-2022-0288","Warn: Project is vulnerable to: GO-2022-0969 / GHSA-69cg-p879-7622","Warn: Project is vulnerable to: GO-2022-1144 / GHSA-xrjj-mj9h-534m","Warn: Project is vulnerable to: GO-2023-1571 / GHSA-vvpx-j8f3-3w6h","Warn: Project is vulnerable to: GO-2023-1988 / GHSA-2wrh-6pvc-2jm9","Warn: Project is vulnerable to: GO-2023-2102 / GHSA-4374-p667-p6c8","Warn: Project is vulnerable to: GHSA-qppj-fm5r-hxr3","Warn: Project is vulnerable to: GO-2024-2687 / GHSA-4v7x-pqxf-cx7m","Warn: Project is vulnerable to: GO-2024-3333","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-2021-0061 / GHSA-r88r-gmrh-7j83","Warn: Project is vulnerable to: GO-2022-0956 / GHSA-6q6q-88xp-6f2r","Warn: Project is vulnerable to: GO-2020-0036 / GHSA-wxc4-f4m6-wwqv","Warn: Project is vulnerable to: GO-2021-0113 / GHSA-ppp9-7jff-5vj2","Warn: Project is vulnerable to: GO-2022-1059 / GHSA-69ch-w2m2-3vjp","Warn: Project is vulnerable to: GO-2022-0603 / GHSA-hp87-p4gw-j4gq","Warn: Project is vulnerable to: GO-2022-0229 / GHSA-cjjc-xp8v-855w","Warn: Project is vulnerable to: GO-2020-0012 / GHSA-ffhg-7mh4-33c4","Warn: Project is vulnerable to: GO-2021-0227 / GHSA-3vm4-22fp-5rfm","Warn: Project is vulnerable to: GO-2022-0968 / GHSA-gwc9-m7rh-j2ww","Warn: Project is vulnerable to: GO-2021-0356 / GHSA-8c26-wmh5-6g9v","Warn: Project is vulnerable to: GO-2024-2961","Warn: Project is vulnerable to: GO-2023-2402 / GHSA-45x7-px36-x8w8","Warn: Project is vulnerable to: GO-2024-3321 / GHSA-v778-237x-gjrc","Warn: Project is vulnerable to: GO-2025-3487 / GHSA-hcg3-q754-cr77","Warn: Project is vulnerable to: GO-2020-0015 / GHSA-5rcv-m4m3-hfh7","Warn: Project is vulnerable to: GO-2020-0017 / GHSA-w73w-5m7g-f7qc","Warn: Project is vulnerable to: GO-2021-0053 / GHSA-c3h9-896r-86jm","Warn: Project is vulnerable to: GO-2022-0322 / GHSA-cg3q-j54f-5p7p","Warn: Project is vulnerable to: GO-2022-0197 / GHSA-4r78-hx75-jjj2 / GHSA-mv93-wvcp-7m7r","Warn: Project is vulnerable to: GO-2020-0014 / GHSA-vfw5-hrgq-h5wf"],"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-18T03:49:53.848Z","repository_id":47745067,"created_at":"2025-08-18T03:49:53.849Z","updated_at":"2025-08-18T03:49:53.849Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28339235,"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":["argo-workflow","argo-workflows","cli","cobra","go-gin","golang","katacoda","kubernetes","kubernetes-cluster","minikube","restful-webservices"],"created_at":"2026-01-12T13:34:47.667Z","updated_at":"2026-01-12T13:34:47.772Z","avatar_url":"https://github.com/deepaksinghvi.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Catalog Management System\n\n[![CircleCI](https://circleci.com/gh/deepaksinghvi/catalogwf.svg?style=svg)](https://circleci.com/gh/deepaksinghvi/catalogwf/?branch=main)\n\nCatalog Management System for e-commerce users (B2B or B2C), helps users to procurement items. \nA complete catalog management solution would have consumer-like shopping with a sophisticated procurement process. \nThis example is primarily focusing on the catalog processing using workflow orchestration for workflow execution in a Kubernetes pods.\n\nCatalog Workflow App Developed in GoLang.\nHigh-level design for the Catalog Management App is as follows:\n![catalogworkflow.png](resources/catalogworkflow.png)\n\nIt works as the cli app as well as Restful WebService.\n* ClI App is built using [Cobra](https://github.com/spf13/cobra) Library\n* Restful WebService is built using [Gin Web Framework](https://github.com/gin-gonic/gin)  \n\nCatalog Workflow has been integrated with [Argo Workflow](https://argoproj.github.io/workflows).  \nArgo Workflows is an open source container-native workflow engine for orchestrating parallel jobs on Kubernetes.\n\n### Pre-Requisites\n* Run Catalog Workflow App [Local or Remote](#build-\u0026-run).\n* Run Argo-Workflow  (Local or Remote)\n\n\n### Build \u0026 Run\n```\ngo build\ngo mod\ngo vendor\n\n./catalogwf catalogservice\n```\n\n#### Build Docker Image\n```\ndocker build -t catalogwf .\ndocker run -p 8080:8080 -it --name catalogprocesslocal catalogwf catalogservice\n\n```\n\nAccess application at http://localhost:8080/swagger/index.html\n\n\n![swaggerapi.png](resources/swaggerapi.png)\n\n#### To push image to docker-hub\n```\ndocker tag catalogwf deepaksinghvi/catalogwf:latest\ndocker push deepaksinghvi/catalogwf:latest\n```\n\n### Run Argo Workflow in Kubernetes Cluster\n\n#### Run Argo Locally\n```\nminikube start\nminikube dashboard\nkubectl create ns argo\nkubectl apply -n argo -f https://raw.githubusercontent.com/argoproj/argo-workflows/release-2.12.1/manifests/quick-start-minimal.yaml\n\n//verify pods are up and running\nkubectl -n argo get pods\n\n// access argo server (previously known as argo-ui)\nkubectl -n argo port-forward svc/argo-server 2746:2746\n```\n\n\n#### Run Argo on Katacoda (free)\nCreate Kubernetes cluster via Katacoda in browser\n\nhttps://www.katacoda.com/courses/kubernetes/launch-single-node-cluster\nRun only Step1 of Step4 and run the commands below\n\n```\nkubectl create ns argo\nkubectl apply -n argo -f https://raw.githubusercontent.com/argoproj/argo-workflows/release-2.12.1/manifests/quick-start-minimal.yaml\nkubectl patch svc argo-server -n argo -p '{\"spec\": {\"type\": \"LoadBalancer\", \"externalIPs\":[\"192.1.1.1\"]}}'\nkubectl get svc -n argo argo-server\n```\nUse externalIPs as your machine's IP Address\n\nResuls for argo-server service\n```\n$ kubectl get svc -n argo argo-server  \nNAME          TYPE           CLUSTER-IP     EXTERNAL-IP    PORT(S)          AGE\nargo-server   LoadBalancer   111.22.33.44   192.1.1.1   2746:31513/TCP   42s\n```\n\nClick on plus (+) icon and Click \"Select port to view on Host 1\"\n![openwebport.png](resources/openwebport.png)\n\nSet 31513 as the port in page \"Web Preview Port Selector\" and Click on \"Display Port\"\nhttps://2886795277-31513-ollie07.environments.katacoda.com/  \nThis would open argo-server.\n\n### Create Workflow Template\nPublish Catalog Workflow Template\nCopy contents from [catalogworkflow.yaml](resources/catalogworkflow.yaml) and create template as follows:\n\n![workflowtemplatecreation.png](resources/workflowtemplatecreation.png)\n\n\n### Initiate A Catalog Workflow via API\nRun CatalogWF App\nRun Argo-Workflow (local or remote)\nFind base url of Argo Server (Argo UI) for e.g. http://localhost:2746\nExecute Initiate Catalog Workflow Request as follows\n![initiatecatalogworkflow.png](resources/initiatecatalogworkflow.png)\n\n```\n{\n  \"baseurl\": \"http://localhost:2746\",\n  \"workflowtemplate\": {\n    \"namespace\": \"argo\",\n    \"resourceKind\": \"WorkflowTemplate\",\n    \"resourceName\": \"catalog-workflow-step-g9rv6\",\n    \"submitOptions\": {\n      \"entryPoint\": \"catalogprocess\",\n      \"parameters\": [\n        \"catalogname=test-workflow-name\"\n      ]\n    }\n  }\n}\n```\n\n\nUser would need to change resourceName as for my current deployment name of the template is \n\"catalog-workflow-step-g9rv6\"\n\n#### Submit Workflow request directly to Argo Workflow APIs using CURL\n```\ncurl 'http://localhost:2746/api/v1/workflows/argo/submit' \\\n  -H 'Content-Type: application/json' \\\n  -H 'Accept: */*' \\\n  --data-raw '{\"namespace\":\"argo\",\"resourceKind\":\"WorkflowTemplate\",\"resourceName\":\"catalog-workflow-step-g9rv6\",\"submitOptions\":{\"entryPoint\":\"catalogprocess\",\"parameters\":[\"catalogname=test-workflow-name\"]}}'\n```\n\n#### Submit Workflow request directly to Argo Workflow APIs using Argo Server (Argo UI)\n![submitworkflowrequestviaargoserverswagger.png](resources/submitworkflowrequestviaargoserverswagger.png)\n\n\n### Generate/Update Swaggo Document\n```\nswag init\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeepaksinghvi%2Fcatalogwf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdeepaksinghvi%2Fcatalogwf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeepaksinghvi%2Fcatalogwf/lists"}