{"id":13594374,"url":"https://github.com/victoriadrake/hugo-remote","last_synced_at":"2026-01-19T18:02:28.578Z","repository":{"id":45780553,"uuid":"245277670","full_name":"victoriadrake/hugo-remote","owner":"victoriadrake","description":"GitHub Action to build and deploy a Hugo site to a remote repository. Deploy from a private repo to a public one!","archived":false,"fork":false,"pushed_at":"2025-01-30T19:10:04.000Z","size":85,"stargazers_count":67,"open_issues_count":2,"forks_count":22,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-10-03T23:09:14.842Z","etag":null,"topics":["continuous-integration","deployment-automation","hugo-site","security","workflow"],"latest_commit_sha":null,"homepage":"","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/victoriadrake.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}},"created_at":"2020-03-05T22:10:06.000Z","updated_at":"2025-08-31T14:50:59.000Z","dependencies_parsed_at":"2024-01-14T04:34:53.432Z","dependency_job_id":"8e46fa98-7e72-4ae6-967d-c4e43873e48d","html_url":"https://github.com/victoriadrake/hugo-remote","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/victoriadrake/hugo-remote","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/victoriadrake%2Fhugo-remote","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/victoriadrake%2Fhugo-remote/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/victoriadrake%2Fhugo-remote/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/victoriadrake%2Fhugo-remote/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/victoriadrake","download_url":"https://codeload.github.com/victoriadrake/hugo-remote/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/victoriadrake%2Fhugo-remote/sbom","scorecard":{"id":920462,"data":{"date":"2025-08-11","repo":{"name":"github.com/victoriadrake/hugo-remote","commit":"c83e19f4c666ecec8495cf23e5003c84da1b891c"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.4,"checks":[{"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":"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":"Code-Review","score":5,"reason":"Found 7/13 approved changesets -- score normalized to 5","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":-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":"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":"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":"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: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":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: containerImage not pinned by hash: Dockerfile:2: pin your Docker image by updating node:14 to node:14@sha256:a158d3b9b4e3fa813fa6c8c590b8f0a860e015ad4e59bbce5744d2f6fd8461aa","Warn: npmCommand not pinned by hash: action.sh:20","Info:   0 out of   1 containerImage dependencies pinned","Info:   0 out of   1 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":"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"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 26 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-25T01:48:17.711Z","repository_id":45780553,"created_at":"2025-08-25T01:48:17.711Z","updated_at":"2025-08-25T01:48:17.711Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28578952,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-19T17:42:58.221Z","status":"ssl_error","status_checked_at":"2026-01-19T17:40:54.158Z","response_time":67,"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":["continuous-integration","deployment-automation","hugo-site","security","workflow"],"created_at":"2024-08-01T16:01:32.537Z","updated_at":"2026-01-19T18:02:28.554Z","avatar_url":"https://github.com/victoriadrake.png","language":"Shell","funding_links":[],"categories":["Shell"],"sub_categories":[],"readme":"# GitHub Action to build and deploy a Hugo site to a remote repository 🚀\n\nIf you've ever wanted to keep your Hugo site source repository private, but deploy the site to your public GitHub Pages repository, you're in the right place.\n\nThis action cleans and rebuilds your [Hugo site](https://gohugo.io/), and pushes the new build to a remote repository you define.\n\nIt always uses the latest extended version from [Hugo releases](https://github.com/gohugoio/hugo/releases). The extended version [enables the processing](https://gohugo.io/troubleshooting/faq/#i-get-tocss--this-feature-is-not-available-in-your-current-hugo-version) of SCSS and Sass files to CSS.\n\nTo save build time, the action first checks that you have a valid configuration file in the repository root. See documentation for Hugo's [Configuration File](https://gohugo.io/getting-started/configuration/#configuration-file).\n\nYour site will build in the `DEST` directory you specify (Hugo's usual default is `public`). The contents of this directory will then be pushed to `master` of your remote public repository.\n\n## Use this in your workflow\n\nHere's how to use this action in your workflow file.\n\n### 1. Add a Personal Access Token as a Secret called `TOKEN` in your repository\n\nSee [Creating a token](https://help.github.com/en/github/authenticating-to-github/creating-a-personal-access-token-for-the-command-line#creating-a-token) to set up a Personal Access Token. See [Creating and storing encrypted secrets](https://help.github.com/en/actions/configuring-and-managing-workflows/creating-and-storing-encrypted-secrets) for instructions to add this to your repository.\n\nWhen you're finished, your repository's Secrets tab will look like this:\n\n![Secrets tab showing saved TOKEN encrypted variable](secret.png)\n\n### 2. Set your environment variables and add this action in a workflow\n\nThis action expects variables for:\n\n- `REMOTE`, your remote repository in the format `\u003cusername\u003e/\u003crepository name\u003e.git`,\n- `DEST`, the name of the destination directory you would like the site to build to,\n- `TOKEN`, in the form `${{ secrets.TOKEN }}` assuming `TOKEN` is the name you've used.\n\nSee `env` in the below example for how to set these in your workflow YAML file.\n\nYou can optionally set an environment variable `HUGO_ARGS` under the \"Build and deploy\" step. This allows passing one or more arbitrary [options](https://gohugo.io/commands/hugo/#options) to the `hugo` build command. See `man hugo` on your system for options. Some examples include:\n\n- `HUGO_ARGS: '--minify'`\n- `HUGO_ARGS: '--enableGitInfo --ignoreCache'`\n\nHere is an example workflow file that uses this action on any `push` event to the `master` branch:\n\n```yml\nname: hugo-remote\n\non:\n  push:\n    branches:\n      - master\n\nenv:\n  REMOTE: username/username.github.io.git\n  DEST: public\n  TOKEN: ${{ secrets.TOKEN }}\n\njobs:\n  build:\n\n    runs-on: ubuntu-latest\n\n    steps:\n      - name: 🛎 Check out master\n        uses: actions/checkout@master\n        with:\n          fetch-depth: 1\n          # if your chosen Hugo theme is a submodule\n          submodules: true\n      - name: 🚀 Build and deploy\n        env:\n          HUGO_ARGS: '--minify --cleanDestinationDir'\n        uses: victoriadrake/hugo-remote@master\n```\n\nYou can customize branch names and commit messages in your configuration. Here is an example workflow file that uses this action on any `push` event to the `master` branch and deploys to the remote repository's `main` branch with a commit message `build prepared o7`:\n\n```yml\nname: hugo-remote\n\non:\n  push:\n    branches:\n      - master\n\nenv:\n  REMOTE: username/username.github.io.git\n  DEST: public\n  TOKEN: ${{ secrets.TOKEN }}\n\njobs:\n  build:\n\n    runs-on: ubuntu-latest\n\n    steps:\n      - name: 🛎 Check out master\n        uses: actions/checkout@master\n        with:\n          fetch-depth: 1\n          # if your chosen Hugo theme is a submodule\n          submodules: true\n      - name: 🚀 Build and deploy\n        uses: victoriadrake/hugo-remote@master\n        with:\n          branch: main\n          commit_message: build prepared o7\n```\n\nSee full instructions for [Configuring and managing workflows](https://help.github.com/en/actions/configuring-and-managing-workflows).\n\nFor workflow file syntax, see [Workflow syntax for GitHub Actions](https://help.github.com/en/actions/automating-your-workflow-with-github-actions/workflow-syntax-for-github-actions).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvictoriadrake%2Fhugo-remote","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvictoriadrake%2Fhugo-remote","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvictoriadrake%2Fhugo-remote/lists"}