{"id":23070244,"url":"https://github.com/markbattistella/markdown-safe-link","last_synced_at":"2026-02-26T23:01:39.123Z","repository":{"id":43900958,"uuid":"318668371","full_name":"markbattistella/markdown-safe-link","owner":"markbattistella","description":"Scan your markdown files for unsafe urls and remove them so you don't get spread bad stuff!","archived":false,"fork":false,"pushed_at":"2025-09-13T12:35:27.000Z","size":243,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-20T00:14:51.436Z","etag":null,"topics":["google-safe-browsing","google-safebrowsing","node","nodejs","safe-browsing","sanitizer","url-safe"],"latest_commit_sha":null,"homepage":"https://markbattistella.github.io/markdown-safe-link/","language":"JavaScript","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/markbattistella.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,"zenodo":null},"funding":{"github":["markbattistella"],"custom":["https://www.paypal.me/markbattistella/5AUD","https://www.paypal.me/markbattistella/10AUD","https://www.paypal.me/markbattistella/20AUD"]}},"created_at":"2020-12-05T00:35:39.000Z","updated_at":"2025-09-13T12:35:24.000Z","dependencies_parsed_at":"2024-01-11T06:32:23.124Z","dependency_job_id":"744918cd-fcbb-48e7-803c-7cc2e7e77521","html_url":"https://github.com/markbattistella/markdown-safe-link","commit_stats":{"total_commits":19,"total_committers":2,"mean_commits":9.5,"dds":"0.26315789473684215","last_synced_commit":"712f1450360e04e44426cd95ebb5a24233d7776a"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/markbattistella/markdown-safe-link","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markbattistella%2Fmarkdown-safe-link","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markbattistella%2Fmarkdown-safe-link/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markbattistella%2Fmarkdown-safe-link/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markbattistella%2Fmarkdown-safe-link/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/markbattistella","download_url":"https://codeload.github.com/markbattistella/markdown-safe-link/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markbattistella%2Fmarkdown-safe-link/sbom","scorecard":{"id":619732,"data":{"date":"2025-08-11","repo":{"name":"github.com/markbattistella/markdown-safe-link","commit":"f8ef39d31a17bc82e97c1021da3b4d1327ee1f86"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.6,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/15 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":"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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/release.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":"Maintained","score":1,"reason":"2 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 1","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"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/release.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/markbattistella/markdown-safe-link/release.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/markbattistella/markdown-safe-link/release.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/markbattistella/markdown-safe-link/release.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:25: update your workflow using https://app.stepsecurity.io/secureworkflow/markbattistella/markdown-safe-link/release.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:38: update your workflow using https://app.stepsecurity.io/secureworkflow/markbattistella/markdown-safe-link/release.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:40: update your workflow using https://app.stepsecurity.io/secureworkflow/markbattistella/markdown-safe-link/release.yml/main?enable=pin","Warn: npmCommand not pinned by hash: .github/workflows/release.yml:29","Warn: npmCommand not pinned by hash: .github/workflows/release.yml:45","Info:   0 out of   5 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 third-party GitHubAction dependencies pinned","Info:   0 out of   2 npmCommand 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":"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":"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":-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":"Security-Policy","score":10,"reason":"security policy file detected","details":["Info: security policy file detected: github.com/markbattistella/.github/.github/SECURITY.md:1","Info: Found linked content: github.com/markbattistella/.github/.github/SECURITY.md:1","Info: Found disclosure, vulnerability, and/or timelines in security policy: github.com/markbattistella/.github/.github/SECURITY.md:1","Info: Found text in security policy: github.com/markbattistella/.github/.github/SECURITY.md:1"],"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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 12 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-21T04:55:29.463Z","repository_id":43900958,"created_at":"2025-08-21T04:55:29.463Z","updated_at":"2025-08-21T04:55:29.463Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29876340,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-26T22:37:10.609Z","status":"ssl_error","status_checked_at":"2026-02-26T22:37:09.019Z","response_time":89,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["google-safe-browsing","google-safebrowsing","node","nodejs","safe-browsing","sanitizer","url-safe"],"created_at":"2024-12-16T06:25:26.080Z","updated_at":"2026-02-26T23:01:39.107Z","avatar_url":"https://github.com/markbattistella.png","language":"JavaScript","funding_links":["https://github.com/sponsors/markbattistella","https://www.paypal.me/markbattistella/5AUD","https://www.paypal.me/markbattistella/10AUD","https://www.paypal.me/markbattistella/20AUD","https://www.paypal.me/markbattistella/6AUD","https://www.buymeacoffee.com/markbattistella"],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\n# Markdown Safe Web Browsing\n\n[![Help donate](https://img.shields.io/badge/%20-@markbattistella-blue?logo=paypal)](https://www.paypal.me/markbattistella/6AUD)\n[![Buy me a coffee](https://img.shields.io/badge/%20-buymeacoffee-black?logo=buy-me-a-coffee)](https://www.buymeacoffee.com/markbattistella)\n\n---\n\u003c/div\u003e\n\n## Background\n\nI started with this tweet by [@seanallen](https://twitter.com/seanallen_dev/status/1332696819625844736) where he added a URL into a YouTube video description.\n\nThe URL became compromised within the week of adding it, and his channel was flagged with **strike 1**.\n\nI realised there isn't anything out there to prevent this from happening to anyone's repository.\n\n## Usage\n\n1. Install the module from `npm`\n\n    ```sh\n    # locally\n    npm i @markbattistella/markdown-safe-link\n\n    # globally\n    npm i @markbattistella/markdown-safe-link -g\n    ```\n\n1. Run it from your terminal\n\n    ```sh\n    markdown-safe-link \\\n        --api=\"\u003cYOUR_API_KEY_HERE\u003e\" \\\n        --dir=\"~/projects/my-docs/\" \\\n        --replace=\"~~UNSAFE~~\"\n    ```\n\n### Github action\n\nIf you want to use this as part of your repository there is also [an action you can use](https://github.com/markbattistella/markdown-safe-link-action).\n\n## Requirements\n\nYou need to get your own API for [Google Safe Browsing](https://developers.google.com/safe-browsing/) as there are limits to the number of calls made.\n\n## Configuration\n\n| Name       | Description                     |\n|------------|---------------------------------|\n| `dir`      | The directory to scan md files  |\n| `api`      | Google API for scanning URLs    |\n| `replace`  | What to replace the URLs with   |\n| `proxy`    | Are you behind a proxy server   |\n| `url`      | Proxy url address or IP address |\n| `port`     | Proxy port number               |\n| `username` | Username if your proxy has auth |\n| `password` | Password if your proxy has auth |\n| `dry`      | Don't actually re-write files   |\n| `help`     | Display the help screen         |\n\n### Full command line\n\n```sh\nmarkdown-safe-link \\\n  --api=\"\u003cYOUR_API_KEY_HERE\u003e\" \\\n  --dir=\"~/projects/my-docs/\" \\\n  --replace=\"~~UNSAFE~~\"      \\\n  --proxy                     \\\n    --url=\"127.0.0.1\"         \\\n    --port=\"3128\"             \\\n    --username=\"jdoe\"         \\\n    --password=\"MyPassword\"   \\\n  --dry\n```\n\n## Contributing\n\n1. Clone the repo:\n\n    `git clone https://github.com/markbattistella/markdown-safe-link.git`\n\n1. Create your feature branch:\n\n    `git checkout -b my-feature`\n\n1. Commit your changes:\n\n    `git commit -am 'Add some feature'`\n\n1. `Push` to the branch:\n\n    `git push origin my-new-feature`\n\n1. Submit the `pull` request\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarkbattistella%2Fmarkdown-safe-link","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarkbattistella%2Fmarkdown-safe-link","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarkbattistella%2Fmarkdown-safe-link/lists"}