{"id":18037568,"url":"https://github.com/jeremija/gosubmit","last_synced_at":"2026-03-17T23:07:27.878Z","repository":{"id":44997472,"uuid":"240902631","full_name":"jeremija/gosubmit","owner":"jeremija","description":"Go library for parsing and submitting HTML forms","archived":false,"fork":false,"pushed_at":"2024-11-22T06:15:57.000Z","size":83,"stargazers_count":20,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-08-15T07:23:02.236Z","etag":null,"topics":["form","golang","html","http","request","testing"],"latest_commit_sha":null,"homepage":"https://bb.rondo.dev/@jeremija/e/gosubmit-parse-html-forms-and-build-prefilled-requests-for-submitting","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/jeremija.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":"2020-02-16T14:09:41.000Z","updated_at":"2025-05-14T12:33:41.000Z","dependencies_parsed_at":"2022-08-23T14:10:21.162Z","dependency_job_id":null,"html_url":"https://github.com/jeremija/gosubmit","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/jeremija/gosubmit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeremija%2Fgosubmit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeremija%2Fgosubmit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeremija%2Fgosubmit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeremija%2Fgosubmit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jeremija","download_url":"https://codeload.github.com/jeremija/gosubmit/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeremija%2Fgosubmit/sbom","scorecard":{"id":515403,"data":{"date":"2025-08-11","repo":{"name":"github.com/jeremija/gosubmit","commit":"0f3c7b7a0e61036f617b90d7f7dfa62d0880b215"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.9,"checks":[{"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":"Code-Review","score":1,"reason":"Found 3/27 approved changesets -- score normalized to 1","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":"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":"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":"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":"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":"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":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":"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":"Vulnerabilities","score":0,"reason":"13 existing vulnerabilities detected","details":["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"],"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-20T01:41:09.254Z","repository_id":44997472,"created_at":"2025-08-20T01:41:09.254Z","updated_at":"2025-08-20T01:41:09.254Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30635156,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-17T22:38:22.569Z","status":"ssl_error","status_checked_at":"2026-03-17T22:38:11.804Z","response_time":56,"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":["form","golang","html","http","request","testing"],"created_at":"2024-10-30T13:12:39.101Z","updated_at":"2026-03-17T23:07:27.860Z","avatar_url":"https://github.com/jeremija.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gosubmit\n\n[![Build Status](https://travis-ci.com/jeremija/gosubmit.svg?branch=master)](https://travis-ci.com/jeremija/gosubmit)\n\n# Description\n\nDocs are available here: https://godoc.org/github.com/jeremija/gosubmit\n\nHelps filling out plain html forms during testing. Will automatically take the\nexisting values from the form so there is no need to manually set things like\ncsrf tokens. Alerts about missing required fields, or when pattern validation\ndoes not match. See [example_test.go](example_test.go) for a full example.\n\n```golang\npackage gosubmit_test\n\nimport (\n\t// TODO import app\n\t. \"github.com/jeremija/gosubmit\"\n\n\t\"net/http\"\n\t\"net/http/httptest\"\n)\n\nfunc TestLogin(t *testing.T) {\n\tw := httptest.NewRecorder()\n\tr := httptest.NewRequest(\"GET\", \"/auth/login\", nil)\n\n\tapp.ServeHTTP(w, r)\n\n\tr, err := ParseResponse(w.Result(), r.URL).FirstForm().NewTestRequest(\n\t\tSet(\"username\", \"user\"),\n\t\tSet(\"password\", \"password\"),\n\t)\n\n\tif err != nil {\n\t\tt.Fatalf(\"Error filling form: %s\", err)\n\t}\n\n\tw := httptest.NewRecorder()\n\tapp.ServeHTTP(w, r)\n\n\tif code := w.Result().StatusCode; code != http.StatusOK {\n\t\tt.Errorf(\"Expected status ok but got %d\", code)\n\t}\n}\n```\n\nAutofilling of all required input fields is supported:\n\n```golang\nr, err := ParseResponse(w.Result(), r.URL).FirstForm().NewTestRequest(\n\tAutofill(),\n)\n```\n\nElements that include a pattern attribute for validation will not be autofilled\nand have to be filled in manually. For example:\n\n```golang\nr, err := ParseResponse(w.Result(), r.URL).FirstForm().NewTestRequest(\n\tAutofill(),\n\tSet(\"validatedURL\", \"https://www.example.com\"),\n)\n```\n\n# Testing Helpers\n\nTo avoid checking for error in tests manually when creating a new test request\n, the value of `t *testing.T` can be provided:\n\n```golang\nr := ParseResponse(w.Result(), r.URL).FirstForm().Testing(t).NewTestRequest(\n\tAutofill(),\n\tSet(\"validatedURL\", \"https://www.example.com\"),\n)\n```\n\nIn case of any errors, the `t.Fatalf()` function will be called. `t.Helper()`\nis used appropriately to ensure line numbers reported by `go test` are correct.\n\n# Supported Elements\n\n- `input[type=checkbox]`\n- `input[type=date]`\n- `input[type=email]`\n- `input[type=hidden]`\n- `input[type=number]`\n- `input[type=radio]`\n- `input[type=text]`\n- `input[type=url]`\n- `textarea`\n- `select`\n- `select[multiple]`\n- `button[type=submit]` with name and value\n- `input[type=submit]` with name and value\n\nIf an input element is not on this list, it will default to text input.\n\n# Who Is Using `gosubmit`?\n\n- [rondomoon](https://rondomoon.com)\n- [rondoBB](https://bb.rondo.dev)\n- _Your app here - send a PR!_\n\n# License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjeremija%2Fgosubmit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjeremija%2Fgosubmit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjeremija%2Fgosubmit/lists"}