{"id":7745750,"name":"casperdcl/push-dir","ecosystem":"actions","description":"Cleanly push directory contents to a branch","homepage":"","licenses":"other","normalized_licenses":["Other"],"repository_url":"https://github.com/casperdcl/push-dir","keywords_array":["actions","deployment","github-actions","github-pages","static-site"],"namespace":"casperdcl","versions_count":3,"first_release_published_at":"2021-09-11T20:54:18.000Z","latest_release_published_at":"2022-10-14T21:04:10.000Z","latest_release_number":"v1.0.2","last_synced_at":"2026-09-08T05:53:31.030Z","created_at":"2023-05-17T10:17:37.856Z","updated_at":"2026-09-23T01:49:46.287Z","registry_url":"https://github.com/casperdcl/push-dir","install_command":null,"documentation_url":null,"metadata":{"name":"Push Dir","author":"Casper da Costa-Luis","description":"Cleanly push directory contents to a branch","inputs":{"message":{"description":"Commit message","required":true},"branch":{"description":"Branch to push to","required":true},"name":{"description":"Git committer name","default":"github-actions[bot]","required":false},"email":{"description":"Git committer email","default":"41898282+github-actions[bot]@users.noreply.github.com","required":false},"dir":{"description":"Directory to push","default":".","required":false},"force":{"description":"Set to \"true\" to force push","required":false},"history":{"description":"Set to \"false\" to discard any prior commits on the `branch`\n(Note: \"false\" will override `force` to \"true\")\n","default":true,"required":false},"cname":{"description":"Text to inject into a `CNAME` file","default":"","required":false},"nojekyll":{"description":"Set to \"true\" to add a `.nojekyll` file","required":false}},"branding":{"icon":"upload-cloud","color":"black"},"runs":{"using":"composite","steps":[{"name":"Push Branch","run":"abspath(){\n  echo \"$(cd \"$1\" \u0026\u0026 pwd)\"\n}\n\nDOT_GIT_DIR=\"$(git -C \"$INPUT_DIR\" rev-parse --git-dir)\"\nif [[ ! -f \"$DOT_GIT_DIR\"/config \u0026\u0026 -d \"$DOT_GIT_DIR\"/.git ]]; then\n  # incorrectly configured GIT_DIR\n  DOT_GIT_DIR=\"$DOT_GIT_DIR\"/.git\nfi\nDOT_GIT_DIR=\"$(abspath \"$DOT_GIT_DIR\")\"\n\nTEMP_DIR=\"$(mktemp -d 2\u003e/dev/null || mktemp -d -t tempdir)\"\ncp -rT \"${INPUT_DIR%%+(/)}\" \"${TEMP_DIR%%+(/)}\"\nrm -rf \"$TEMP_DIR\"/.git\n\nTEMP_REPO=\"$(mktemp -d 2\u003e/dev/null || mktemp -d -t temprepo)\"\npushd \"$TEMP_REPO\"\n\ngit init\ngit config user.name \"$INPUT_NAME\"\ngit config user.email \"$INPUT_EMAIL\"\ngit remote add local file://\"$DOT_GIT_DIR\"\nif [[ \"$INPUT_HISTORY\" == true ]]; then\n  git -C \"$DOT_GIT_DIR\" fetch --depth=1 origin \"$INPUT_BRANCH\":\"$INPUT_BRANCH\" \\\n  \u0026\u0026 git fetch --depth=1 local \"$INPUT_BRANCH\":\"$INPUT_BRANCH\" \\\n  \u0026\u0026 git checkout \"$INPUT_BRANCH\" \\\n  \u0026\u0026 git ls-files -z | xargs -0 git rm || :\nfi\ngit branch -M \"$INPUT_BRANCH\"\n\ncp -rT \"${TEMP_DIR%%+(/)}\" \"${TEMP_REPO%%+(/)}\"\nrm -rf \"$TEMP_DIR\"\n\nif [[ -n \"$INPUT_CNAME\" ]]; then\n  echo \"$INPUT_CNAME\" \u003e CNAME\nfi\nif [[ \"$INPUT_NOJEKYLL\" == true ]]; then\n  touch .nojekyll\nfi\n\ngit add . \u0026\u0026 git commit -m \"${INPUT_MESSAGE}\" || :\ngit push --force local \"$INPUT_BRANCH\":\"$INPUT_BRANCH\"\n\npopd\nrm -rf \"$TEMP_REPO\"\n\nif [[ \"$INPUT_FORCE\" == true || \"$INPUT_HISTORY\" == false ]]; then\n  git -C \"$DOT_GIT_DIR\" push --force origin \"$INPUT_BRANCH\":\"$INPUT_BRANCH\"\nelse\n  git -C \"$DOT_GIT_DIR\" push origin \"$INPUT_BRANCH\":\"$INPUT_BRANCH\"\nfi\n","shell":"bash","env":{"INPUT_DIR":"${{ inputs.dir }}","INPUT_NAME":"${{ inputs.name }}","INPUT_EMAIL":"${{ inputs.email }}","INPUT_HISTORY":"${{ inputs.history }}","INPUT_BRANCH":"${{ inputs.branch }}","INPUT_CNAME":"${{ inputs.cname }}","INPUT_NOJEKYLL":"${{ inputs.nojekyll }}","INPUT_MESSAGE":"${{ inputs.message }}","INPUT_FORCE":"${{ inputs.force }}"}}]},"default_branch":"v1","path":null},"repo_metadata":{"id":47002923,"uuid":"405474099","full_name":"casperdcl/push-dir","owner":"casperdcl","description":"Cleanly push directory contents to a branch","archived":false,"fork":false,"pushed_at":"2022-10-14T21:07:33.000Z","size":21,"stargazers_count":4,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"v1","last_synced_at":"2026-09-13T16:42:57.639Z","etag":null,"topics":["actions","deployment","github-actions","github-pages","static-site"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/casperdcl.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":"casperdcl","custom":"https://cdcl.ml/sponsor"}},"created_at":"2021-09-11T20:12:47.000Z","updated_at":"2026-06-27T11:54:43.000Z","dependencies_parsed_at":"2023-01-05T05:03:53.206Z","dependency_job_id":null,"html_url":"https://github.com/casperdcl/push-dir","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/casperdcl/push-dir","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/casperdcl%2Fpush-dir","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/casperdcl%2Fpush-dir/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/casperdcl%2Fpush-dir/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/casperdcl%2Fpush-dir/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/casperdcl","download_url":"https://codeload.github.com/casperdcl/push-dir/tar.gz/refs/heads/v1","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/casperdcl%2Fpush-dir/sbom","scorecard":{"id":267405,"data":{"date":"2025-08-11","repo":{"name":"github.com/casperdcl/push-dir","commit":"e351785b3b8a4e27e0aa9cb9bbc9d32a74de036c"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.4,"checks":[{"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":0,"reason":"Found 0/9 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":"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":"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":"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/comment-bot.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/casperdcl/push-dir/comment-bot.yml/v1?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/comment-bot.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/casperdcl/push-dir/comment-bot.yml/v1?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/comment-bot.yml:43: update your workflow using https://app.stepsecurity.io/secureworkflow/casperdcl/push-dir/comment-bot.yml/v1?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/casperdcl/push-dir/test.yml/v1?enable=pin","Info:   0 out of   4 GitHub-owned GitHubAction 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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/comment-bot.yml:1","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":"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":"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":"License","score":9,"reason":"license file detected","details":["Info: project has a license file: LICENCE.md:0","Warn: project license file does not contain an FSF or OSI license."],"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 'v1'"],"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 5 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-17T12:26:26.409Z","repository_id":47002923,"created_at":"2025-08-17T12:26:26.409Z","updated_at":"2025-08-17T12:26:26.409Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":341189360,"owners_count":37535098,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-08-22T15:14:58.755Z","status":"online","status_checked_at":"2026-09-20T02:00:06.856Z","response_time":61,"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":"casperdcl","name":"Casper da Costa-Luis","uuid":"10780059","kind":"user","description":"Computational Physicist; philosopher; effortlessly superior to LLMs; member of IEEE, IOP, \u0026 @python Software Foundation","email":"casper.dcl@physics.org","website":"https://cdcl.ml","location":"London, UK","twitter":null,"company":null,"icon_url":"https://avatars.githubusercontent.com/u/10780059?u=38592bafa6af55acf5aac0066fddfdf91bdf4702\u0026v=4","repositories_count":154,"last_synced_at":"2026-09-20T18:03:57.957Z","metadata":{"has_sponsors_listing":true,"funding":null},"html_url":"https://github.com/casperdcl","funding_links":["https://github.com/sponsors/casperdcl"],"total_stars":970,"followers":672,"following":1,"created_at":"2022-11-11T22:15:37.119Z","updated_at":"2026-09-20T18:03:57.974Z","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/casperdcl","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/casperdcl/repositories"},"tags":[{"name":"v1.0.2","sha":"e351785b3b8a4e27e0aa9cb9bbc9d32a74de036c","kind":"commit","published_at":"2022-10-14T21:04:10.000Z","download_url":"https://codeload.github.com/casperdcl/push-dir/tar.gz/v1.0.2","html_url":"https://github.com/casperdcl/push-dir/releases/tag/v1.0.2","dependencies_parsed_at":"2023-06-01T10:55:49.847Z","dependency_job_id":null,"purl":"pkg:github/casperdcl/push-dir@v1.0.2","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/casperdcl%2Fpush-dir/tags/v1.0.2","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/casperdcl%2Fpush-dir/tags/v1.0.2/manifests"},{"name":"v1.0.1","sha":"2ca2c974364d5516760854a1f4cc1e249b688a54","kind":"commit","published_at":"2021-09-19T15:21:47.000Z","download_url":"https://codeload.github.com/casperdcl/push-dir/tar.gz/v1.0.1","html_url":"https://github.com/casperdcl/push-dir/releases/tag/v1.0.1","dependencies_parsed_at":"2023-05-31T10:03:26.273Z","dependency_job_id":null,"purl":"pkg:github/casperdcl/push-dir@v1.0.1","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/casperdcl%2Fpush-dir/tags/v1.0.1","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/casperdcl%2Fpush-dir/tags/v1.0.1/manifests"},{"name":"v1.0.0","sha":"bfc6155c7f5e1aa006c0fd6ceb42f6f934ecb344","kind":"commit","published_at":"2021-09-11T20:54:18.000Z","download_url":"https://codeload.github.com/casperdcl/push-dir/tar.gz/v1.0.0","html_url":"https://github.com/casperdcl/push-dir/releases/tag/v1.0.0","dependencies_parsed_at":"2023-05-31T10:03:26.534Z","dependency_job_id":null,"purl":"pkg:github/casperdcl/push-dir@v1.0.0","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/casperdcl%2Fpush-dir/tags/v1.0.0","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/casperdcl%2Fpush-dir/tags/v1.0.0/manifests"}]},"repo_metadata_updated_at":"2026-09-23T01:49:46.286Z","dependent_packages_count":0,"downloads":null,"downloads_period":null,"dependent_repos_count":4,"rankings":{"downloads":null,"dependent_repos_count":16.460148946284264,"dependent_packages_count":0.0,"stargazers_count":19.857391855490413,"forks_count":16.162256377753128,"docker_downloads_count":null,"average":13.119949294881952},"purl":"pkg:githubactions/casperdcl/push-dir","advisories":[],"docker_usage_url":"https://docker.ecosyste.ms/usage/actions/casperdcl/push-dir","docker_dependents_count":null,"docker_downloads_count":null,"usage_url":"https://repos.ecosyste.ms/usage/actions/casperdcl/push-dir","dependent_repositories_url":"https://repos.ecosyste.ms/api/v1/usage/actions/casperdcl/push-dir/dependencies","status":null,"funding_links":["https://github.com/sponsors/casperdcl","https://cdcl.ml/sponsor"],"critical":null,"issue_metadata":{"last_synced_at":"2026-09-20T16:24:53.710Z","issues_count":2,"pull_requests_count":3,"avg_time_to_close_issue":519560.0,"avg_time_to_close_pull_request":173148.33333333334,"issues_closed_count":1,"pull_requests_closed_count":3,"pull_request_authors_count":2,"issue_authors_count":2,"avg_comments_per_issue":0.5,"avg_comments_per_pull_request":0.6666666666666666,"merged_pull_requests_count":2,"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/casperdcl%2Fpush-dir/issues","maintainers":[{"login":"casperdcl","count":2,"url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/authors/casperdcl"}],"active_maintainers":[]},"versions_url":"https://packages.ecosyste.ms/api/v1/registries/github%20actions/packages/casperdcl%2Fpush-dir/versions","version_numbers_url":"https://packages.ecosyste.ms/api/v1/registries/github%20actions/packages/casperdcl%2Fpush-dir/version_numbers","latest_version_url":"https://packages.ecosyste.ms/api/v1/registries/github%20actions/packages/casperdcl%2Fpush-dir/latest_version","dependent_packages_url":"https://packages.ecosyste.ms/api/v1/registries/github%20actions/packages/casperdcl%2Fpush-dir/dependent_packages","related_packages_url":"https://packages.ecosyste.ms/api/v1/registries/github%20actions/packages/casperdcl%2Fpush-dir/related_packages","codemeta_url":"https://packages.ecosyste.ms/api/v1/registries/github%20actions/packages/casperdcl%2Fpush-dir/codemeta","maintainers":[]}