{"id":37197735,"url":"https://github.com/singnet/platform-pipeline","last_synced_at":"2026-01-14T22:58:48.629Z","repository":{"id":33538937,"uuid":"138799449","full_name":"singnet/platform-pipeline","owner":"singnet","description":"SingularityNET Platform CI/CD Pipeline Repository","archived":false,"fork":false,"pushed_at":"2023-09-06T19:54:24.000Z","size":124,"stargazers_count":2,"open_issues_count":6,"forks_count":7,"subscribers_count":7,"default_branch":"master","last_synced_at":"2024-06-21T18:51:32.739Z","etag":null,"topics":["snet-platform"],"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/singnet.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":"2018-06-26T22:15:15.000Z","updated_at":"2021-10-08T10:30:40.000Z","dependencies_parsed_at":"2024-06-21T17:53:58.738Z","dependency_job_id":null,"html_url":"https://github.com/singnet/platform-pipeline","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/singnet/platform-pipeline","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/singnet%2Fplatform-pipeline","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/singnet%2Fplatform-pipeline/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/singnet%2Fplatform-pipeline/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/singnet%2Fplatform-pipeline/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/singnet","download_url":"https://codeload.github.com/singnet/platform-pipeline/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/singnet%2Fplatform-pipeline/sbom","scorecard":{"id":827126,"data":{"date":"2025-08-11","repo":{"name":"github.com/singnet/platform-pipeline","commit":"60deccc4cb78b0257f29f64864a08505a9b71e91"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.5,"checks":[{"name":"Code-Review","score":10,"reason":"all changesets reviewed","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":"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":"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":"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":"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":"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":-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 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":"11 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GO-2022-0254 / GHSA-9856-9gg9-qcmq","Warn: Project is vulnerable to: GO-2022-0256 / GHSA-59hh-656j-3p7v","Warn: Project is vulnerable to: GO-2022-0456 / GHSA-wjxw-gh3m-7pm5","Warn: Project is vulnerable to: GO-2023-2046 / GHSA-ppjg-v974-84cm","Warn: Project is vulnerable to: GO-2024-2819 / GHSA-4xc9-8hmq-j652","Warn: Project is vulnerable to: GHSA-5m8f-chrv-7rw5","Warn: Project is vulnerable to: GHSA-pvx3-gm3c-gmpr","Warn: Project is vulnerable to: GHSA-rqmg-hrg4-fm69","Warn: Project is vulnerable to: GHSA-v9jh-j8px-98vq","Warn: Project is vulnerable to: GHSA-vmf7-hmh6-vv57","Warn: Project is vulnerable to: GHSA-vrcc-g6vj-mh5w"],"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-23T16:50:00.051Z","repository_id":33538937,"created_at":"2025-08-23T16:50:00.052Z","updated_at":"2025-08-23T16:50:00.052Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28437763,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T22:37:52.437Z","status":"ssl_error","status_checked_at":"2026-01-14T22:37:31.496Z","response_time":107,"last_error":"SSL_read: 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":["snet-platform"],"created_at":"2026-01-14T22:58:47.890Z","updated_at":"2026-01-14T22:58:48.592Z","avatar_url":"https://github.com/singnet.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# platform-pipeline\n\n[![CircleCI](https://circleci.com/gh/singnet/platform-pipeline.svg?style=svg)](https://circleci.com/gh/singnet/platform-pipeline)\n\nSingularityNET Platform CI/CD Pipeline Repository\n\n\n## Run integration tests with CircleCI\n\n* Install [Docker CE](https://docs.docker.com/install/linux/docker-ce/ubuntu)\n* Add $USER to the docker group [Post-installation steps](https://docs.docker.com/install/linux/linux-postinstall)\n* Install [CircleCI command-line tool](https://circleci.com/docs/2.0/local-cli)\n* checkout platform-pipeline build\n  * \u003e git checkout https://github.com/singnet/platform-pipeline.git\n* Go to the platform-pipeline directory\n* Run CircleCI\n  * \u003e circleci build\n\n## Add a new test scenario\n\nIntegration tests use [GoDog](https://github.com/cucumber/godog) for test writing which is based on\ncucumber gherkin3 parser.\n export GO111MODULE=on, running go mod init, and then installing a specific version of godog with a command like go get github.com/cucumber/godog/cmd/godog@v0.8.1\nFor example, test organization registering:\n* Add a new scenario to the [features/publish_service.feature](features/publish_service.feature) file:\n```gherkin\n\tScenario: Register an organization\n\t\tWhen  organization is registered\n\t\t\t| organization name |\n\t\t\t| TestOrganization  |\n\t\tThen  organization is included into the list\n\t\t\t| organization name |\n\t\t\t| TestOrganization  |\n```\n* Go to the platform-pipeline directory\n* Run godog\n  * \u003e godog\n\nIt will print stub methods which needs to be implemented:\n```go\n//You can implement step definitions for undefined steps with these snippets:\n\nfunc organizationIsRegistered(arg1 *godog.Table) error {\n\treturn godog.ErrPending\n}\n\nfunc organizationIsIncludedIntoTheList(arg1 *gherkin.DataTable) error {\n\treturn godog.ErrPending\n}\n\nfunc FeatureContext(s *godog.Suite) {\n\ts.Step(`^organization is registered$`, organizationIsRegistered)\n\ts.Step(`^organization is included into the list$`, organizationIsIncludedIntoTheList)\n}\n```\n\n* Put the FeatureContext steps into the [features_steps_test.go](features_steps_test.go) file:\n```go\nfunc FeatureContext(s *godog.Suite) {\n\n\t// background\n\t// ...\n\n\t// example-services sample\n\t// ...\n\n\t// Check organization\n\ts.Step(`^organization is registered$`, organizationIsRegistered)\n\ts.Step(`^organization is included into the list$`, organizationIsIncludedIntoTheList)\n}\n```\n\n* Create a test file **register_organization_test.go** and add stub functions into it:\n```go\npackage main\n\nimport (\n\t\"github.com/cucumber/godog\"\n)\n\nfunc organizationIsRegistered(table  *godog.Table) error {\n\treturn godog.ErrPending\n}\n\nfunc organizationIsIncludedIntoTheList(table *godog.Table) error {\n\treturn godog.ErrPending\n}\n```\n\n* Use Command DSL to run commands from the shell and check that the output\ncontains necessary words:\n\n```go\nfunc organizationIsRegistered(table *gherkin.DataTable) error {\n\n\torganizationName := getTableValue(table, \"organization name\")\n\n\treturn NewCommand().\n\t\tRun(\"snet organization create %s --registry-at %s -y\", organizationName, registryAddress).\n\t\tErr()\n}\n\nfunc organizationIsIncludedIntoTheList(table *gherkin.DataTable) error {\n\n\torganizationName := getTableValue(table, \"organization name\")\n\toutput := \"organizations.out\"\n\n\treturn NewCommand().\n\t\tOutput(output).\n\t\tRun(\"snet organization list\").\n\t\tCheckOutput(organizationName).\n\t\tErr()\n}\n```\n\n`Note`: Background in publish_service.feature file is executed before each scenario. It means that in case of\nmore than one scenario the background tests should be updated to be executed only once.\n\n\n## Troubleshoot failed platform-pipeline project\n\nThe following steps can help to reproduce and find root cause of the failed platform pipeline build.\n\n`Note`: platform-pipeline always builds all singnet projects from master branch.\n\n* Find the step where platform-pipeline failed in [CircleCI Web UI](https://circleci.com/gh/singnet/platform-pipeline)\n* Open the .circleci/config.yaml file in the platform-pipeline project\n* Insert *bash* command before the failed step.\n\nFor example, the *bash* command was inserted before running GoDog integration tests.\n\n```yaml\n    - checkout\n    - run:\n        name: Run integration tests\n        command: |\n          export PATH=$PATH:$GOPATH/bin\n          mkdir $GOPATH/log\n          go get github.com/DATA-DOG/godog/cmd/godog\n          bash # \u003c-- inserted command\n          godog\n```\n\n* Run CircleCI in the platform-pipeline project\n  * \u003e cd platform-pipeline\n  * \u003e circleci build\n* Wait until CircleCI build reaches the *bash* point\n* Copy the docker image\n  * List docker running containers\n    * \u003e docker ps\n  * Select the container id for image \"ubuntu:latest\" from the output\n  * Copy the docker image\n    * \u003e docker commit container-id circleci-platform-pipeline\n* Run the copied CircleCI image by docker\n  * \u003e docker run -it circleci-platform-pipeline bash\n  * \u003e cd /root/singnet/src/github.com/singnet\n\n* Connect to the running docker image\n  * List docker running containers\n    * \u003e docker ps\n  * Select the container id for required docker\n  * Run\n    * \u003e docker exec -it container-id bash\n\n`Note`: necessary test environment variables are not set in this *bash* session and should be set manually.\n```\nexport GOPATH=/root/singnet\nexport SINGNET_REPOS=/root/singnet/src/github.com/singnet\nexport PATH=$PATH:$GOPATH/bin\nexport IPFS_PATH=$GOPATH/ipfs\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsingnet%2Fplatform-pipeline","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsingnet%2Fplatform-pipeline","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsingnet%2Fplatform-pipeline/lists"}