{"id":22682179,"url":"https://github.com/andry81-devops/gh-action--git-checkout","last_synced_at":"2026-02-12T11:03:03.727Z","repository":{"id":65158892,"uuid":"481866224","full_name":"andry81-devops/gh-action--git-checkout","owner":"andry81-devops","description":"GitHub composite action extension of actions/checkout action. • :page_with_curl: https://github.com/andry81-stats/gh-action--git-checkout--gh-stats :page_with_curl:","archived":false,"fork":false,"pushed_at":"2025-02-02T12:12:02.000Z","size":31,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-16T06:45:37.452Z","etag":null,"topics":["action","action-extension","checkout","composite-action","devops","git","git-checkout","github-action"],"latest_commit_sha":null,"homepage":"https://github.com/andry81-devops/github-action-extensions","language":null,"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/andry81-devops.png","metadata":{"files":{"readme":"README.md","changelog":"changelog.txt","contributing":null,"funding":".github/FUNDING.yml","license":"license.txt","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":null,"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":["https://github.com/andry81/donate"]}},"created_at":"2022-04-15T06:50:55.000Z","updated_at":"2025-09-30T15:43:58.000Z","dependencies_parsed_at":"2025-04-22T11:07:32.325Z","dependency_job_id":"b021318e-8900-4c48-815c-5db6a978baea","html_url":"https://github.com/andry81-devops/gh-action--git-checkout","commit_stats":{"total_commits":9,"total_committers":1,"mean_commits":9.0,"dds":0.0,"last_synced_commit":"b678e5876d173a90c9e6f2c446891fa591b69f24"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/andry81-devops/gh-action--git-checkout","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andry81-devops%2Fgh-action--git-checkout","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andry81-devops%2Fgh-action--git-checkout/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andry81-devops%2Fgh-action--git-checkout/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andry81-devops%2Fgh-action--git-checkout/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andry81-devops","download_url":"https://codeload.github.com/andry81-devops/gh-action--git-checkout/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andry81-devops%2Fgh-action--git-checkout/sbom","scorecard":{"id":194850,"data":{"date":"2025-08-11","repo":{"name":"github.com/andry81-devops/gh-action--git-checkout","commit":"087545d1d4ee650fe035057ab687a48836de70b6"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":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":"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":"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":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"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":"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":0,"reason":"Found 0/20 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":"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":"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.txt:0","Info: FSF or OSI recognized license: MIT License: license.txt: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":"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"}}]},"last_synced_at":"2025-08-16T21:37:57.601Z","repository_id":65158892,"created_at":"2025-08-16T21:37:57.601Z","updated_at":"2025-08-16T21:37:57.601Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29363641,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-12T08:51:36.827Z","status":"ssl_error","status_checked_at":"2026-02-12T08:51:26.849Z","response_time":55,"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":["action","action-extension","checkout","composite-action","devops","git","git-checkout","github-action"],"created_at":"2024-12-09T20:25:34.325Z","updated_at":"2026-02-12T11:03:03.710Z","avatar_url":"https://github.com/andry81-devops.png","language":null,"funding_links":["https://github.com/andry81/donate"],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\r\n  \u003ca href=\"#\"\u003e\r\n    \u003cimg src=\"https://github.com/andry81-cache/andry81-devops--gh-content-cache/raw/master/repo/andry81-devops/gh-action--git-checkout/badges/metrics/shields-repo-size.svg\" valign=\"middle\" alt=\"GitHub repo size in bytes\" /\u003e\u003c/a\u003e\r\n\u003c!-- -- \u003e\r\n• \u003ca href=\"#\"\u003e\r\n    \u003cimg src=\"https://github.com/andry81-cache/andry81-devops--gh-content-cache/raw/master/repo/andry81-devops/gh-action--git-checkout/badges/metrics/shields-code-size.svg\" valign=\"middle\" alt=\"code size in bytes\" /\u003e\u003c/a\u003e\r\n\u003c!-- --\u003e\r\n• \u003ca href=\"https://github.com/XAMPPRocky/tokei\"\u003e\r\n    \u003cimg src=\"https://github.com/andry81-cache/andry81-devops--gh-content-cache/raw/master/repo/andry81-devops/gh-action--git-checkout/badges/metrics/tokei-lines-of-code.svg\" valign=\"middle\" alt=\"lines of code by tokei.rs\" /\u003e\u003c/a\u003e\r\n\u003c/p\u003e\r\n\r\n\u003cp align=\"center\"\u003e\r\n  \u003ca href=\"https://github.com/andry81-stats/gh-action--git-checkout--gh-stats/commits/master/traffic/views\"\u003e\r\n    \u003cimg src=\"https://github.com/andry81-cache/andry81-devops--gh-content-cache/raw/master/repo/andry81-devops/gh-action--git-checkout/badges/traffic/views/all.svg\" valign=\"middle\" alt=\"GitHub views|any|total\" /\u003e\r\n    \u003cimg src=\"https://github.com/andry81-cache/andry81-devops--gh-content-cache/raw/master/repo/andry81-devops/gh-action--git-checkout/badges/traffic/views/all-14d.svg\" valign=\"middle\" alt=\"GitHub views|any|14d\" /\u003e\u003c/a\u003e\r\n• \u003ca href=\"https://github.com/andry81-stats/gh-action--git-checkout--gh-stats/commits/master/traffic/views\"\u003e\r\n    \u003cimg src=\"https://github.com/andry81-cache/andry81-devops--gh-content-cache/raw/master/repo/andry81-devops/gh-action--git-checkout/badges/traffic/views/unq.svg\" valign=\"middle\" alt=\"GitHub views|unique per day|total\" /\u003e\r\n    \u003cimg src=\"https://github.com/andry81-cache/andry81-devops--gh-content-cache/raw/master/repo/andry81-devops/gh-action--git-checkout/badges/traffic/views/unq-14d.svg\" valign=\"middle\" alt=\"GitHub views|unique per day|14d\" /\u003e\u003c/a\u003e\r\n\u003c/p\u003e\r\n\r\n\u003cp align=\"center\"\u003e\r\n  \u003ca href=\"https://github.com/andry81-stats/gh-action--git-checkout--gh-stats/commits/master/traffic/clones\"\u003e\r\n    \u003cimg src=\"https://github.com/andry81-cache/andry81-devops--gh-content-cache/raw/master/repo/andry81-devops/gh-action--git-checkout/badges/traffic/clones/all.svg\" valign=\"middle\" alt=\"GitHub clones|any|total\" /\u003e\r\n    \u003cimg src=\"https://github.com/andry81-cache/andry81-devops--gh-content-cache/raw/master/repo/andry81-devops/gh-action--git-checkout/badges/traffic/clones/all-14d.svg\" valign=\"middle\" alt=\"GitHub clones|any|14d\" /\u003e\u003c/a\u003e\r\n• \u003ca href=\"https://github.com/andry81-stats/gh-action--git-checkout--gh-stats/commits/master/traffic/clones\"\u003e\r\n    \u003cimg src=\"https://github.com/andry81-cache/andry81-devops--gh-content-cache/raw/master/repo/andry81-devops/gh-action--git-checkout/badges/traffic/clones/unq.svg\" valign=\"middle\" alt=\"GitHub clones|unique per day|total\" /\u003e\r\n    \u003cimg src=\"https://github.com/andry81-cache/andry81-devops--gh-content-cache/raw/master/repo/andry81-devops/gh-action--git-checkout/badges/traffic/clones/unq-14d.svg\" valign=\"middle\" alt=\"GitHub clones|unique per day|14d\" /\u003e\u003c/a\u003e\r\n\u003c/p\u003e\r\n\r\n\u003cp align=\"center\"\u003e\r\n  \u003ca href=\"https://github.com/andry81-devops/gh-action--git-checkout/commits\"\u003e\r\n    \u003cimg src=\"https://github.com/andry81-cache/andry81-devops--gh-content-cache/raw/master/repo/andry81-devops/gh-action--git-checkout/badges/metrics/commits-since-latest.svg\" valign=\"middle\" alt=\"GitHub commits since latest version\" /\u003e\u003c/a\u003e\r\n  \u003ca href=\"https://github.com/andry81-devops/gh-action--git-checkout/releases\"\u003e\r\n    \u003cimg src=\"https://github.com/andry81-cache/andry81-devops--gh-content-cache/raw/master/repo/andry81-devops/gh-action--git-checkout/badges/metrics/latest-release-name.svg\" valign=\"middle\" alt=\"latest release name\" /\u003e\u003c/a\u003e\r\n• \u003ca href=\"https://github.com/andry81-devops/gh-action--git-checkout/releases\"\u003e\r\n    \u003cimg src=\"https://github.com/andry81-cache/andry81-devops--gh-content-cache/raw/master/repo/andry81-devops/gh-action--git-checkout/badges/metrics/github-all-releases.svg\" valign=\"middle\" alt=\"GitHub all releases\" /\u003e\u003c/a\u003e\r\n\u003c/p\u003e\r\n\r\n\u003cp align=\"center\"\u003e\r\n  \u003ca href=\"https://github.com/andry81/donate\"\u003e\u003cimg src=\"https://github.com/andry81-cache/gh-content-static-cache/raw/master/common/badges/donate/donate.svg\" valign=\"middle\" alt=\"donate\" /\u003e\u003c/a\u003e\r\n\u003c/p\u003e\r\n\r\n---\r\n\r\n\u003cp align=\"center\"\u003e\r\n  \u003ca href=\"https://github.com/andry81-devops/gh-action--git-checkout/tree/HEAD/userlog.md\"\u003eUserlog\u003c/a\u003e\r\n• \u003ca href=\"https://github.com/andry81-devops/gh-action--git-checkout/tree/HEAD/changelog.txt\"\u003eChangelog\u003c/a\u003e\r\n• \u003ca href=\"#known-issues\"\u003eKnown issues\u003c/a\u003e\r\n• \u003ca href=\"#copyright-and-license\"\u003e\u003cimg src=\"https://github.com/andry81-cache/gh-content-static-cache/raw/master/common/badges/license/mit-license.svg\" valign=\"middle\" alt=\"copyright and license\" /\u003e\u0026nbsp;Copyright and License\u003c/a\u003e\r\n\u003c/p\u003e\r\n\r\n\u003ch4 align=\"center\"\u003eGitHub composite action extension of \u003ctt\u003eactions/checkout\u003c/tt\u003e action.\u003c/h4\u003e\r\n\r\nTutorial to use with: https://github.com/andry81-devops/github-action-extensions\r\n\r\nAll tutorials: https://github.com/andry81/index#tutorials\r\n\r\n##\r\n\r\n# gh-action--git-checkout@master\r\n\r\n**Features**:\r\n\r\n* Checks if a remote repository does exist and has a branch reference to delegate all input into https://github.com/actions/checkout action.\r\n\r\n* Otherwise calls to `mkdir` + `git init` instead of call to the `actions/checkout` action script.\r\n\r\n* Additionally can create working copy subdirectories after the call (`mkdir-p` extra parameter). Has a difference with a working copy subdirectory creation before the checkout, because the `action/checkout` action script does cleanup a working copy directory before the checkout.\r\n\r\n# USAGE\r\n\r\n## Example snippet:\r\n\r\n```yml\r\nsteps:\r\n  - uses: andry81-devops/gh-action--git-checkout@master\r\n    with:\r\n      repository: ...\r\n      ref:        ...\r\n      path:       ...\r\n      token:      ...\r\n\r\n      mkdir-p: \u003e-\r\n        ...\r\n```\r\n\r\n\u003e [!NOTE]\r\n\u003e See \u003ca href=\"https://github.com/andry81-devops/github-accum-stats#reuse\"\u003eREUSE\u003c/a\u003e section for details if you have multiple repositories and want to store all GitHub workflow scripts (`.github/workflows/*.yml`) in a single repository.\r\n\r\n## Known Issues\r\n\r\nhttps://github.com/andry81-devops/gh-known-issues#known-issues\r\n\r\n## Last known issues updates\r\n\r\nhttps://github.com/andry81-devops/gh-known-issues#last-known-issues-updates\r\n\r\n## Copyright and License\r\n\r\nCode and documentation copyright 2022 Andrey Dibrov. Code released under [MIT License](https://github.com/andry81-devops/gh-action--git-checkout/tree/HEAD/license.txt)\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandry81-devops%2Fgh-action--git-checkout","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandry81-devops%2Fgh-action--git-checkout","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandry81-devops%2Fgh-action--git-checkout/lists"}