https://github.com/cisagov/setup-go-package
Composite GitHub action to install a Go package.
https://github.com/cisagov/setup-go-package
actions composite-action github-actions go golang
Last synced: 8 months ago
JSON representation
Composite GitHub action to install a Go package.
- Host: GitHub
- URL: https://github.com/cisagov/setup-go-package
- Owner: cisagov
- License: cc0-1.0
- Created: 2022-11-29T16:52:56.000Z (over 3 years ago)
- Default Branch: develop
- Last Pushed: 2025-10-06T15:16:17.000Z (9 months ago)
- Last Synced: 2025-10-06T15:32:00.420Z (9 months ago)
- Topics: actions, composite-action, github-actions, go, golang
- Language: Shell
- Homepage:
- Size: 603 KB
- Stars: 3
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# setup-go-package #
[](https://github.com/cisagov/setup-go-package/actions)
A [GitHub composite action](https://docs.github.com/en/actions/creating-actions/creating-a-composite-action)
to install a given Go package with the specified version/tag.
## Usage ##
### Inputs ###
| Name | Description | Interpreted Type | Default | Required |
|------|-------------|------------------|---------|:--------:|
| source | The source for the Go package to install. | `string` | n/a | yes |
| version | The version or tag to use for the Go package. | `string` | n/a | yes |
### Outputs ###
None.
### Sample GitHub Actions workflow ###
```yml
---
name: The workflow
on:
pull_request:
push:
jobs:
my_job:
# This job does not need any permissions
permissions: {}
runs-on: ubuntu-latest
steps:
- name: Install terraform-docs
uses: cisagov/setup-go-package@e7d5a7d8c497f15addbc13c54c8cb6f3822ed2d5 # v1.0.0
with:
source: github.com/terraform-docs/terraform-docs
version: "1.2.3"
```
## Contributing ##
We welcome contributions! Please see [`CONTRIBUTING.md`](CONTRIBUTING.md) for
details.
## License ##
This project is in the worldwide [public domain](LICENSE).
This project is in the public domain within the United States, and
copyright and related rights in the work worldwide are waived through
the [CC0 1.0 Universal public domain
dedication](https://creativecommons.org/publicdomain/zero/1.0/).
All contributions to this project will be released under the CC0
dedication. By submitting a pull request, you are agreeing to comply
with this waiver of copyright interest.