{"id":21857911,"url":"https://github.com/mathematic-inc/setup-buf","last_synced_at":"2025-03-21T19:33:34.534Z","repository":{"id":52471098,"uuid":"336124698","full_name":"mathematic-inc/setup-buf","owner":"mathematic-inc","description":"Set up your GitHub Actions workflow with a specific version of Buf","archived":false,"fork":false,"pushed_at":"2021-04-28T04:30:16.000Z","size":19044,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-03T18:16:12.888Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/mathematic-inc.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}},"created_at":"2021-02-05T00:56:43.000Z","updated_at":"2021-04-28T04:27:10.000Z","dependencies_parsed_at":"2022-09-21T01:02:42.493Z","dependency_job_id":null,"html_url":"https://github.com/mathematic-inc/setup-buf","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathematic-inc%2Fsetup-buf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathematic-inc%2Fsetup-buf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathematic-inc%2Fsetup-buf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathematic-inc%2Fsetup-buf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mathematic-inc","download_url":"https://codeload.github.com/mathematic-inc/setup-buf/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244855550,"owners_count":20521658,"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","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":[],"created_at":"2024-11-28T02:33:21.747Z","updated_at":"2025-03-21T19:33:34.485Z","avatar_url":"https://github.com/mathematic-inc.png","language":"TypeScript","readme":"# setup-buf\n\n![setup-buf](https://github.com/mu-io/setup-buf/workflows/CD/badge.svg)\n\nThis action sets up a buf environment for use in actions by:\n\n- optionally downloading and caching a version of Buf by version and adding to PATH\n\nIt will first check the local cache for a version match. If version is not found locally, it will download directly from the [bufbuild/buf](https://github.com/bufbuild/buf/releases) repository.\n\nMatching by semver spec:\n\n```yaml\nsteps:\n- uses: actions/checkout@v2\n- uses: mu-io/setup-buf@v1beta\n  with:\n    buf-version: '0.36.0' # The Buf version to download (if necessary) and use.\n    token: ${{ secrets.GITHUB_TOKEN }} # Default token in GitHub Action to wave API request limits\n- run: buf --version\n```\n\n## Usage\n\nSee [action.yml](action.yml)\n\n\u003e Note: We reserve the `buf-version` `latest` for the latest release. Hence to obtain the latest release, just use `latest`.\n\u003e At this time, it is recommended to fix a version as Buf is still in pre-release.\n\nBasic:\n\n```yaml\nsteps:\n- uses: actions/checkout@master\n- uses: mu-io/setup-buf@v1beta\n  with:\n    buf-version: '0.36.0' # The Buf version to download (if necessary) and use.\n- run: buf generate\n```\n\nMatrix Testing:\n\n```yaml\njobs:\n  build:\n    runs-on: ubuntu-16.04\n    strategy:\n      matrix:\n        buf: [ '0.36.0', '0.35.0' ]\n    name: Buf ${{ matrix.buf }} sample\n    steps:\n      - uses: actions/checkout@v2\n      - uses: mu-io/setup-buf@v1beta\n        with:\n          buf-version: ${{ matrix.buf }}\n          token: ${{ secrets.GITHUB_TOKEN }} # Default token in GitHub Action to wave API request limits\n      - run: buf generate\n```\n\n## License\n\nThe scripts and documentation in this project are released under the [MIT License](LICENSE).\n\n## Contributions\n\nContributions are welcome!  See [Contributor's Guide](docs/contributors.md).\n\n### Code of Conduct\n\n:wave: Be nice.  See [our code of conduct](CONDUCT).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmathematic-inc%2Fsetup-buf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmathematic-inc%2Fsetup-buf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmathematic-inc%2Fsetup-buf/lists"}