{"id":33574260,"url":"https://github.com/erclu/check-crlf","last_synced_at":"2025-11-28T13:05:12.258Z","repository":{"id":43776747,"uuid":"219787337","full_name":"erclu/check-crlf","owner":"erclu","description":"GitHub Action to check for files with CRLF line endings","archived":false,"fork":false,"pushed_at":"2025-07-21T09:47:59.000Z","size":17,"stargazers_count":8,"open_issues_count":2,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-23T20:12:54.018Z","etag":null,"topics":["github-actions","github-actions-docker"],"latest_commit_sha":null,"homepage":null,"language":"Shell","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/erclu.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":"2019-11-05T16:08:09.000Z","updated_at":"2025-07-21T09:48:03.000Z","dependencies_parsed_at":"2023-01-11T17:22:28.002Z","dependency_job_id":null,"html_url":"https://github.com/erclu/check-crlf","commit_stats":{"total_commits":15,"total_committers":3,"mean_commits":5.0,"dds":"0.19999999999999996","last_synced_commit":"94acb86c2a41b0a46bd8087b63a06f0457dd0c6c"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/erclu/check-crlf","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erclu%2Fcheck-crlf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erclu%2Fcheck-crlf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erclu%2Fcheck-crlf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erclu%2Fcheck-crlf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/erclu","download_url":"https://codeload.github.com/erclu/check-crlf/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erclu%2Fcheck-crlf/sbom","scorecard":{"id":379649,"data":{"date":"2025-08-11","repo":{"name":"github.com/erclu/check-crlf","commit":"c77fda0a97ea8944aba5f72796b9e937e7d1611c"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.3,"checks":[{"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":4,"reason":"Found 4/10 approved changesets -- score normalized to 4","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":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["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":"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":"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":"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":"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":"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/test.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/erclu/check-crlf/test.yml/master?enable=pin","Warn: containerImage not pinned by hash: Dockerfile:1: pin your Docker image by updating debian:bookworm-slim to debian:bookworm-slim@sha256:b1a741487078b369e78119849663d7f1a5341ef2768798f7b7406c4240f86aef","Info:   0 out of   1 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 containerImage 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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 16 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-18T15:06:21.895Z","repository_id":43776747,"created_at":"2025-08-18T15:06:21.895Z","updated_at":"2025-08-18T15:06:21.895Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280918360,"owners_count":26413415,"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-10-25T02:00:06.499Z","response_time":81,"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":["github-actions","github-actions-docker"],"created_at":"2025-11-28T13:01:48.798Z","updated_at":"2025-11-28T13:05:12.247Z","avatar_url":"https://github.com/erclu.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GitHub Action to check for files with CRLF line endings\n\nA GitHub Action to keep in check those windows developers who have given up understanding git's autocrlf setting and/or forget to handle line endings on their side.\n\nBy default checks all files in the repository (excluding the .git folder), but can be given a list of separate directories to check.\n\n## Disclaimer\n\nI don't have much time to work on this unexpectedly appreciated github action, but if you find out that your use case is complex enough to require additional features, you're probably better off using the line endings functionality included by git itself. Some references:\n\n- how to set specific line endings for each file by using gitattributes: \u003chttps://git-scm.com/docs/gitattributes#_text\u003e\n- \u003chttps://docs.github.com/en/free-pro-team@latest/github/using-git/configuring-git-to-handle-line-endings\u003e\n- \u003chttps://adaptivepatchwork.com/2012/03/01/mind-the-end-of-your-line/\u003e\n\n## Example\n\n```yml\nname: Example usage\n\non: push\n\njobs:\n  example-workflow:\n    name: Example workflow using the Check CRLF action\n    runs-on: ubuntu-latest\n\n    steps:\n      - name: Checkout repository contents\n        uses: actions/checkout@v1\n\n      - name: Use action to check for CRLF endings\n        uses: erclu/check-crlf@v1\n        with: # omit this mapping to use default path\n          path: ./a-custom-path\n```\n\n## Contributors\n\nMost of the work was done by @Rotendahl, I mainly copy-pasted stuff from stack overflow :)\n\n\u003c!--\n  TODO rewrite using js (better performance)\n--\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferclu%2Fcheck-crlf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ferclu%2Fcheck-crlf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferclu%2Fcheck-crlf/lists"}