{"id":31644149,"url":"https://github.com/bgildson/unico-challenge","last_synced_at":"2026-05-04T13:37:23.792Z","repository":{"id":57622492,"uuid":"387969262","full_name":"bgildson/unico-challenge","owner":"bgildson","description":"This repository contains the solution to the Unico Challenge","archived":false,"fork":false,"pushed_at":"2021-09-07T12:57:33.000Z","size":139,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-31T16:06:49.210Z","etag":null,"topics":["api","challenge","ci","cli","docker","docker-compose","go","golang","postgres","remote-containers","rest","unico","unittest"],"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/bgildson.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-21T02:27:07.000Z","updated_at":"2021-09-07T12:57:36.000Z","dependencies_parsed_at":"2022-09-26T20:10:44.114Z","dependency_job_id":null,"html_url":"https://github.com/bgildson/unico-challenge","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bgildson/unico-challenge","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bgildson%2Funico-challenge","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bgildson%2Funico-challenge/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bgildson%2Funico-challenge/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bgildson%2Funico-challenge/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bgildson","download_url":"https://codeload.github.com/bgildson/unico-challenge/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bgildson%2Funico-challenge/sbom","scorecard":{"id":236063,"data":{"date":"2025-08-11","repo":{"name":"github.com/bgildson/unico-challenge","commit":"0231541736d27861bc450daf04d0d483c1c31973"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.7,"checks":[{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/config.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":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Code-Review","score":0,"reason":"Found 0/24 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":"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":"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":"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":"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":"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/config.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/bgildson/unico-challenge/config.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/config.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/bgildson/unico-challenge/config.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/config.yml:25: update your workflow using https://app.stepsecurity.io/secureworkflow/bgildson/unico-challenge/config.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/config.yml:31: update your workflow using https://app.stepsecurity.io/secureworkflow/bgildson/unico-challenge/config.yml/master?enable=pin","Warn: containerImage not pinned by hash: Dockerfile.dev:1: pin your Docker image by updating golang:1.16.6 to golang:1.16.6@sha256:4544ae57fc735d7e415603d194d9fb09589b8ad7acd4d66e928eabfb1ed85ff1","Warn: containerImage not pinned by hash: Dockerfile.prod:1","Warn: containerImage not pinned by hash: Dockerfile.prod:15","Warn: goCommand not pinned by hash: Dockerfile.dev:27-41","Warn: downloadThenRun not pinned by hash: Dockerfile.dev:27-41","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   2 third-party GitHubAction dependencies pinned","Info:   0 out of   3 containerImage dependencies pinned","Info:   1 out of   2 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":"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":1,"reason":"9 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-927h-x4qj-r242","Warn: Project is vulnerable to: GO-2023-2052 / GHSA-3q5p-3558-364f","Warn: Project is vulnerable to: GO-2023-2115 / GHSA-94w9-97p3-p368","Warn: Project is vulnerable to: GO-2023-2116 / GHSA-mv73-f69x-444p","Warn: Project is vulnerable to: GO-2024-2574 / GHSA-fmg4-x8pw-hjhg","Warn: Project is vulnerable to: GO-2024-2959 / GHSA-98j2-3j3p-fw2v","Warn: Project is vulnerable to: GO-2025-3845 / GHSA-qx2q-88mx-vhg7","Warn: Project is vulnerable to: GO-2022-0355 / GHSA-fx95-883v-4q4h","Warn: Project is vulnerable to: GO-2022-0493 / GHSA-p782-xgp4-8hr8"],"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-17T05:47:40.879Z","repository_id":57622492,"created_at":"2025-08-17T05:47:40.879Z","updated_at":"2025-08-17T05:47:40.879Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32610154,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-04T10:08:07.713Z","status":"ssl_error","status_checked_at":"2026-05-04T10:08:02.005Z","response_time":58,"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":["api","challenge","ci","cli","docker","docker-compose","go","golang","postgres","remote-containers","rest","unico","unittest"],"created_at":"2025-10-07T04:06:15.000Z","updated_at":"2026-05-04T13:37:23.775Z","avatar_url":"https://github.com/bgildson.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# UNICO-CHALLENGE\n\n[![Test and Send Coverage Report](https://github.com/bgildson/unico-challenge/actions/workflows/config.yml/badge.svg)](https://github.com/bgildson/unico-challenge/actions/workflows/config.yml)\n[![Coverage Status](https://coveralls.io/repos/github/bgildson/unico-challenge/badge.svg)](https://coveralls.io/github/bgildson/unico-challenge)\n[![Go Report Card](https://goreportcard.com/badge/github.com/bgildson/unico-challenge)](https://goreportcard.com/report/github.com/bgildson/unico-challenge)\n\nThis repository contains the solution to the [Unico Challenge](./challenge.pdf).\n\n## Running the solution\n\n_To follow the steps bellow, you must have installed [Docker](https://docs.docker.com/get-docker/) and [docker-compose](https://docs.docker.com/compose/install/)._\n\nTo run locally as production, execute the command bellow\n\n```sh\ndocker-compose -f docker-compose-prod.yml up --build\n```\n\nRun the command bellow to apply the database migrations\n\n```sh\ndocker run --rm -v $(pwd)/migrations:/migrations --network host migrate/migrate:v4.11.0 -path=/migrations -database \"postgres://postgres:postgres@localhost:5432/unico_challenge?sslmode=disable\" -verbose up\n```\n\nRun the command bellow to import the registers from the file [DEINFO_AB_FEIRASLIVRES_2014.csv](./DEINFO_AB_FEIRASLIVRES_2014.csv)\n\n```sh\ndocker-compose -f docker-compose-prod.yml exec app /unico-challenge import -f /app/DEINFO_AB_FEIRASLIVRES_2014.csv\n```\n\nThe file \"[unico-challenge.postman_collection.json](./unico-challenge.postman_collection.json)\" contains a **Postman Collection** to interact with the challenge solution.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbgildson%2Funico-challenge","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbgildson%2Funico-challenge","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbgildson%2Funico-challenge/lists"}