{"id":19180438,"url":"https://github.com/shanduur/squat","last_synced_at":"2025-10-30T14:31:48.238Z","repository":{"id":48859948,"uuid":"382341221","full_name":"shanduur/squat","owner":"shanduur","description":"Squat is an application that provides simple SQL data generation functionality.","archived":false,"fork":false,"pushed_at":"2023-09-09T08:03:10.000Z","size":360,"stargazers_count":10,"open_issues_count":4,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-07T22:33:48.993Z","etag":null,"topics":["golang","hacktoberfest","sql"],"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/shanduur.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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,"zenodo":null}},"created_at":"2021-07-02T12:35:22.000Z","updated_at":"2025-02-17T12:31:38.000Z","dependencies_parsed_at":"2024-06-19T05:23:31.086Z","dependency_job_id":"b592a7a2-e24c-43f4-af05-cfdc968e1afd","html_url":"https://github.com/shanduur/squat","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/shanduur/squat","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shanduur%2Fsquat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shanduur%2Fsquat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shanduur%2Fsquat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shanduur%2Fsquat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shanduur","download_url":"https://codeload.github.com/shanduur/squat/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shanduur%2Fsquat/sbom","scorecard":{"id":815743,"data":{"date":"2025-08-11","repo":{"name":"github.com/shanduur/squat","commit":"ee2ee67271e27a829e7b3f03833f577a1d96304e"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.9,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/26 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":"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":"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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/build-image.yml:1","Warn: no topLevel permission defined: .github/workflows/commit-lint.yml:1","Warn: no topLevel permission defined: .github/workflows/test.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":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build-image.yml:11: update your workflow using https://app.stepsecurity.io/secureworkflow/shanduur/squat/build-image.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/build-image.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/shanduur/squat/build-image.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/build-image.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/shanduur/squat/build-image.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/commit-lint.yml:8: update your workflow using https://app.stepsecurity.io/secureworkflow/shanduur/squat/commit-lint.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/commit-lint.yml:11: update your workflow using https://app.stepsecurity.io/secureworkflow/shanduur/squat/commit-lint.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:11: update your workflow using https://app.stepsecurity.io/secureworkflow/shanduur/squat/test.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/shanduur/squat/test.yml/main?enable=pin","Warn: containerImage not pinned by hash: docker/Dockerfile:2","Warn: containerImage not pinned by hash: docker/Dockerfile:20","Warn: downloadThenRun not pinned by hash: .github/workflows/test.yml:30","Info:   0 out of   4 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   3 third-party GitHubAction dependencies pinned","Info:   0 out of   2 containerImage 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":"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":"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":"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":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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 8 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":4,"reason":"6 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GO-2024-2605 / GHSA-m7wr-2xf7-cm9p","Warn: Project is vulnerable to: GO-2024-2606 / GHSA-mrww-27vc-gghv","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-2022-1059 / GHSA-69ch-w2m2-3vjp"],"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-23T14:14:02.969Z","repository_id":48859948,"created_at":"2025-08-23T14:14:02.969Z","updated_at":"2025-08-23T14:14:02.969Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274107693,"owners_count":25223451,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-07T02:00:09.463Z","response_time":67,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["golang","hacktoberfest","sql"],"created_at":"2024-11-09T10:49:23.845Z","updated_at":"2025-10-30T14:31:48.159Z","avatar_url":"https://github.com/shanduur.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Squat\r\n\r\n\u003cp align=\"center\"\u003e\r\n  \u003cimg src=\"https://github.com/Shanduur/squat/blob/main/other/squat.png?raw=true\"/\u003e\r\n\u003c/p\u003e\r\n\r\n[![license](https://img.shields.io/github/license/shanduur/squat?)](LICENSE)\r\n![go version](https://img.shields.io/github/go-mod/go-version/shanduur/squat?)\r\n[![Go Report Card](https://goreportcard.com/badge/github.com/shanduur/squat?)](https://goreportcard.com/report/github.com/shanduur/squat)\r\n[![Test](https://github.com/Shanduur/squat/actions/workflows/test.yml/badge.svg?)](https://github.com/Shanduur/squat/actions/workflows/test.yml)\r\n[![codecov](https://codecov.io/gh/Shanduur/squat/branch/main/graph/badge.svg?token=41HYQ2WILI)](https://codecov.io/gh/Shanduur/squat)\r\n\r\nSquat is an application that provides simple SQL data generation functionality. \r\n\r\nIt generates synthetic SQL data based on the table definition, that is gathered from the DBMS. \r\nSquat supports IBM Informix and PostgreSQL, with planned support for all major databases, including MySQL, CockroachDB and MariaDB.\r\n\r\n# Requirements\r\n\r\nThe Informix provider uses [alexbrainman/odbc](https://github.com/alexbrainman/odbc) package. This means, that for Linux and other \\*NIX operating systems you have to install *unixODBC* application. Additionally, for the compilation, the development version of that is needed (e.g. *unixodbc-dev* on Debian). In Windows it calls directly to the *odbc.dll* - that also needs to be installed. Additionally, you have to provide your own Informix CSDK, that includes client driver for ODBC.\r\n\r\n## Docker\r\n\r\nFor Docker image, as for now, you need to manually log in to the container, and install Informix CSDK, as it's non-free software distributed by IBM.\r\n\r\n# Configuration\r\n\r\nThe app is configured using multiple small configuration files and environment variables. Each file is used for the database connection provider package. Unfortunately, now you can connect only to single database of given type.\r\n\r\nEach config file is read from config location provided to the app through environmental variable.\r\n\r\n- `CONFIG_LOCATION` - sets the directory containing the configuration files for providers.\r\n- `DATA_LOCATION`- sets the directory containing the *data.json* and *data.gob* files.\r\n\r\n\r\nFor examples of the configuration files, look at the [bin/config](./bin/config) folder in the root of the repository.\r\n\r\nAdditionally you can provide your own *data.gob* file. The best way of doing this, is to parse the *JSON* file with *gob-generator*, which source code can be found in the tools directory.\r\n\r\nIn Docker all env variables are set by default, and all exemplary files are loaded into the specific dirs. You should use *Docker Compose* to create volumes and edit the configs from the host machine. \r\n\r\n# Usage\r\n\r\nUsage of the application is quite simple. If you are running it bare-metal, just run the app, with the proper configuration files and environmental variables. Then head to [localhost:8080](localhost:8080) (or change the port correspondingly to the port you have passed with `--port` argument), and start using the web user interface.\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshanduur%2Fsquat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshanduur%2Fsquat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshanduur%2Fsquat/lists"}