{"id":15763654,"url":"https://github.com/casperdcl/push-dir","last_synced_at":"2025-09-08T04:44:39.061Z","repository":{"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":"2025-06-09T04:41:05.933Z","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":"2022-12-21T14:02:15.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":274135617,"owners_count":25228203,"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-09-08T02:00:09.813Z","response_time":121,"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":["actions","deployment","github-actions","github-pages","static-site"],"created_at":"2024-10-04T12:00:39.891Z","updated_at":"2025-09-08T04:44:39.029Z","avatar_url":"https://github.com/casperdcl.png","language":null,"funding_links":["https://github.com/sponsors/casperdcl","https://cdcl.ml/sponsor"],"categories":[],"sub_categories":[],"readme":"GitHub Action: Push Directory\n=============================\n\n[![Test](https://github.com/casperdcl/push-dir/actions/workflows/test.yml/badge.svg)](https://github.com/casperdcl/push-dir/actions/workflows/test.yml)\n\nCleanly push directory contents to a branch. Particularly useful for `gh-pages` deployment.\n\n## Example\n\n```yaml\n    steps:\n      - uses: actions/checkout@v3\n      - run: build_site_command --output-dir static_site\n      - uses: casperdcl/push-dir@v1\n        with:\n          message: update static site\n          branch: gh-pages\n          dir: static_site\n          history: false\n          cname: my.domain.com\n          nojekyll: true\n```\n\n## Why\n\nPerfect for e.g. `gh-pages` deployment.\n\n- Supports pushing the contents of a directory to a branch\n- Supports discarding branch history\n- Uses a blazing fast native GitHub composite action\n- Has the entirety of the code in a [single file](https://github.com/casperdcl/push-dir/blob/master/action.yml), making it very easy to review\n  + If you are [extremely security conscious](https://github.com/casperdcl/deploy-pypi/issues/6#issuecomment-721954322) you can use a commit SHA of a version you've manually reviewed (e.g. `uses: casperdcl/push-dir@`[67a9d1d](https://github.com/casperdcl/push-dir/commit/67a9d1d4123e2e4978ad6ef8a86efaab2300fdc5))\n\nThe main alternatives GitHub Actions\n[gh-pages-deploy](https://github.com/marketplace/actions/gh-pages-deploy) and\n[github-push](https://github.com/marketplace/actions/github-push) currently do\nnot offer the benefits above.\n\nOther features (supported by some of the alternatives) include:\n\n- Custom committer name \u0026 email\n- Custom commit message\n- Force pushing\n- `CNAME` \u0026 `.nojekyll` conveniences for GitHub pages\n\n## Inputs\n\n```yaml\nmessage:\n  description: Commit message\n  required: true\nbranch:\n  description: Branch to push to\n  required: true\ndir:\n  description: Directory to push\n  default: .\n  required: false\nforce:\n  description: Set to \"true\" to force push\n  required: false\nhistory:\n  description: |\n    Set to \"false\" to discard any prior commits on the `branch`\n    (Note: \"false\" will override `force` to \"true\")\n  default: true\n  required: false\ncname:\n  description: Text to inject into a `CNAME` file\n  default: ''\n  required: false\nnojekyll:\n  description: Set to \"true\" to add a `.nojekyll` file\n  required: false\nname:\n  description: Git committer name\n  required: false\nemail:\n  description: Git committer email\n  required: false\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcasperdcl%2Fpush-dir","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcasperdcl%2Fpush-dir","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcasperdcl%2Fpush-dir/lists"}