Skip to content

cisagov/setup-go-package

Repository files navigation

setup-go-package

GitHub Build Status

A GitHub 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

---
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/[email protected]
        with:
          source: github.com/terraform-docs/terraform-docs
          version: "1.2.3"

Contributing

We welcome contributions! Please see CONTRIBUTING.md for details.

License

This project is in the worldwide public domain.

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.

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.