{"id":3507220,"name":"github.com/kr/secureheader","ecosystem":"go","description":"Package secureheader adds some HTTP header fields widely\nconsidered to improve safety of HTTP requests. These fields\nare documented as follows:\n\nThe easiest way to use this package:\n\nDefaultConfig is initialized with conservative (safer and more\nrestrictive) behavior. If you want to change that, set its\nfields to different values before calling ListenAndServe. See\nthe example code below.\n\nThis package was inspired by Twitter's secureheaders Ruby\nlibrary. See https://github.com/twitter/secureheaders.","homepage":"https://github.com/kr/secureheader","licenses":"MIT","normalized_licenses":["MIT"],"repository_url":"https://github.com/kr/secureheader","keywords_array":[],"namespace":"github.com/kr","versions_count":2,"first_release_published_at":"2018-05-06T09:11:48.000Z","latest_release_published_at":"2018-08-06T20:42:14.000Z","latest_release_number":"v0.2.0","last_synced_at":"2026-03-14T01:04:48.377Z","created_at":"2022-04-10T20:46:16.819Z","updated_at":"2026-03-14T01:04:48.378Z","registry_url":"https://pkg.go.dev/github.com/kr/secureheader","install_command":"go get github.com/kr/secureheader","documentation_url":"https://pkg.go.dev/github.com/kr/secureheader#section-documentation","metadata":{},"repo_metadata":{"id":6616622,"uuid":"7860109","full_name":"kr/secureheader","owner":"kr","description":"Package secureheader adds some HTTP headers widely considered to improve safety of HTTP requests.","archived":false,"fork":false,"pushed_at":"2018-08-06T20:44:54.000Z","size":24,"stargazers_count":105,"open_issues_count":3,"forks_count":14,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-08-18T03:40:08.233Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://godoc.org/github.com/kr/secureheader","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/kr.png","metadata":{"files":{"readme":"Readme","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":"2013-01-28T00:04:15.000Z","updated_at":"2025-05-12T21:36:13.000Z","dependencies_parsed_at":"2022-08-28T17:01:17.903Z","dependency_job_id":null,"html_url":"https://github.com/kr/secureheader","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/kr/secureheader","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kr%2Fsecureheader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kr%2Fsecureheader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kr%2Fsecureheader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kr%2Fsecureheader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kr","download_url":"https://codeload.github.com/kr/secureheader/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kr%2Fsecureheader/sbom","scorecard":{"id":569158,"data":{"date":"2025-08-11","repo":{"name":"github.com/kr/secureheader","commit":"9ede93442296d5ede3632c633b3255558f4e4757"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.8,"checks":[{"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":"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":"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":"Code-Review","score":2,"reason":"Found 6/30 approved changesets -- score normalized to 2","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":"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":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"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 7 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"}}]},"last_synced_at":"2025-08-20T15:50:51.375Z","repository_id":6616622,"created_at":"2025-08-20T15:50:51.375Z","updated_at":"2025-08-20T15:50:51.375Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272800967,"owners_count":24995185,"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-08-30T02:00:09.474Z","response_time":77,"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"},"owner_record":{"login":"kr","name":null,"uuid":"4178","kind":"user","description":"","email":"","website":"https://xph.us/","location":null,"twitter":null,"company":null,"icon_url":"https://avatars.githubusercontent.com/u/4178?v=4","repositories_count":138,"last_synced_at":"2023-04-11T05:02:11.890Z","metadata":{"has_sponsors_listing":false},"html_url":"https://github.com/kr","funding_links":[],"total_stars":null,"followers":null,"following":null,"created_at":"2022-11-02T17:03:58.602Z","updated_at":"2023-04-11T05:02:12.606Z","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kr","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kr/repositories"},"tags":[{"name":"v0.2.0","sha":"9ede93442296d5ede3632c633b3255558f4e4757","kind":"tag","published_at":"2018-08-06T20:44:44.000Z","download_url":"https://codeload.github.com/kr/secureheader/tar.gz/v0.2.0","html_url":"https://github.com/kr/secureheader/releases/tag/v0.2.0","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/kr/secureheader@v0.2.0","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kr%2Fsecureheader/tags/v0.2.0","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kr%2Fsecureheader/tags/v0.2.0/manifests"},{"name":"v0.1.0","sha":"1fc1ee287a3e0a8ee86597b344399a39370e64ca","kind":"tag","published_at":"2018-05-06T09:12:22.000Z","download_url":"https://codeload.github.com/kr/secureheader/tar.gz/v0.1.0","html_url":"https://github.com/kr/secureheader/releases/tag/v0.1.0","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/kr/secureheader@v0.1.0","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kr%2Fsecureheader/tags/v0.1.0","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kr%2Fsecureheader/tags/v0.1.0/manifests"}]},"repo_metadata_updated_at":"2025-08-30T04:12:23.149Z","dependent_packages_count":9,"downloads":null,"downloads_period":null,"dependent_repos_count":11,"rankings":{"downloads":null,"dependent_repos_count":1.6066941186747465,"dependent_packages_count":1.7452131007736196,"stargazers_count":4.428007548963643,"forks_count":5.616865317062275,"docker_downloads_count":1.782878840179496,"average":3.0359317851307557},"purl":"pkg:golang/github.com/kr/secureheader","advisories":[],"docker_usage_url":"https://docker.ecosyste.ms/usage/go/github.com/kr/secureheader","docker_dependents_count":6,"docker_downloads_count":176,"usage_url":"https://repos.ecosyste.ms/usage/go/github.com/kr/secureheader","dependent_repositories_url":"https://repos.ecosyste.ms/api/v1/usage/go/github.com/kr/secureheader/dependencies","status":null,"funding_links":[],"critical":null,"issue_metadata":{"last_synced_at":"2025-08-30T04:03:52.343Z","issues_count":8,"pull_requests_count":7,"avg_time_to_close_issue":52304156.4,"avg_time_to_close_pull_request":6868512.571428572,"issues_closed_count":5,"pull_requests_closed_count":7,"pull_request_authors_count":6,"issue_authors_count":2,"avg_comments_per_issue":1.875,"avg_comments_per_pull_request":0.8571428571428571,"merged_pull_requests_count":7,"bot_issues_count":0,"bot_pull_requests_count":0,"past_year_issues_count":0,"past_year_pull_requests_count":0,"past_year_avg_time_to_close_issue":null,"past_year_avg_time_to_close_pull_request":null,"past_year_issues_closed_count":0,"past_year_pull_requests_closed_count":0,"past_year_pull_request_authors_count":0,"past_year_issue_authors_count":0,"past_year_avg_comments_per_issue":null,"past_year_avg_comments_per_pull_request":null,"past_year_bot_issues_count":0,"past_year_bot_pull_requests_count":0,"past_year_merged_pull_requests_count":0,"issues_url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/repositories/kr%2Fsecureheader/issues","maintainers":[{"login":"kr","count":7,"url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/authors/kr"}],"active_maintainers":[]},"versions_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2Fkr%2Fsecureheader/versions","version_numbers_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2Fkr%2Fsecureheader/version_numbers","dependent_packages_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2Fkr%2Fsecureheader/dependent_packages","related_packages_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2Fkr%2Fsecureheader/related_packages","codemeta_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2Fkr%2Fsecureheader/codemeta","maintainers":[]}