{"id":22741344,"url":"https://github.com/pollenjp/setup-shfmt","last_synced_at":"2026-04-12T04:34:03.174Z","repository":{"id":264540764,"uuid":"893407854","full_name":"pollenjp/setup-shfmt","owner":"pollenjp","description":null,"archived":false,"fork":false,"pushed_at":"2025-03-10T16:00:15.000Z","size":1836,"stargazers_count":0,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-18T20:55:50.790Z","etag":null,"topics":["ci","github-actions","shell","shfmt"],"latest_commit_sha":null,"homepage":"https://github.com/marketplace/actions/setup-shfmt-action","language":"TypeScript","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/pollenjp.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":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-11-24T11:22:54.000Z","updated_at":"2025-01-19T19:17:53.000Z","dependencies_parsed_at":"2024-11-25T00:29:55.472Z","dependency_job_id":null,"html_url":"https://github.com/pollenjp/setup-shfmt","commit_stats":null,"previous_names":["pollenjp/setup-shfmt"],"tags_count":2,"template":false,"template_full_name":"actions/typescript-action","purl":"pkg:github/pollenjp/setup-shfmt","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pollenjp%2Fsetup-shfmt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pollenjp%2Fsetup-shfmt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pollenjp%2Fsetup-shfmt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pollenjp%2Fsetup-shfmt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pollenjp","download_url":"https://codeload.github.com/pollenjp/setup-shfmt/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pollenjp%2Fsetup-shfmt/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31704492,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-11T21:17:31.016Z","status":"online","status_checked_at":"2026-04-12T02:00:06.763Z","response_time":58,"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":["ci","github-actions","shell","shfmt"],"created_at":"2024-12-11T00:09:53.474Z","updated_at":"2026-04-12T04:34:03.100Z","avatar_url":"https://github.com/pollenjp.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# setup-shfmt\n\n- Install [shfmt](https://github.com/mvdan/sh) and cache it for GitHub Actions\n- Caching makes it especially efficient when using self-hosted runners\n\n## Usage\n\n```yaml\njobs:\n  shfmt:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: pollenjp/setup-shfmt@v1\n        with:\n          version: latest\n          # version: 3.10.0\n      - uses: actions/checkout@v4\n      - name: Run shfmt\n        run: shfmt -d .\n```\n\nIf you use GitHub Enterprise Server, set the specific version (`X.Y.Z`), or set\n`github-token` empty and `version: latest`.\n\n```yaml\njobs:\n  shellcheck:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: pollenjp/setup-shfmt@v1\n        with:\n          version: 3.10.0\n          #\n          #or\n          #\n          # version: latest  # 'latest' requests GitHub API (github.com)\n          # github-token: '' # Empty token may result in reaching the rate limit\n          #                  # for anonymous requests\n      - uses: actions/checkout@v4\n      - name: Run shfmt\n        run: shfmt -d .\n```\n\n## Compare with other actions\n\n- [mfinelli/setup-shfmt](https://github.com/mfinelli/setup-shfmt)\n  - This actions is\n    [not caching](https://github.com/mfinelli/setup-shfmt/blob/d9998666636b952a610a923ce3eea22cf21b9705/src/index.ts#L79-L84),\n    and is installing shfmt to `$HOME/bin` which is not desirable for\n    self-hosted runners.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpollenjp%2Fsetup-shfmt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpollenjp%2Fsetup-shfmt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpollenjp%2Fsetup-shfmt/lists"}