Skip to content

Commit

Permalink
Merge pull request #65 from cisagov/add-go-actions-for-go-skeleton
Browse files Browse the repository at this point in the history
Include gocritic, gosec and staticcheck versions
  • Loading branch information
jsf9k authored Aug 22, 2023
2 parents c2f4b89 + 3d8220a commit e3c058a
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,13 @@ None

| Name | Description |
|-------------------|-------------|
| go-critic-version | The version of [go-critic](https://github.com/go-critic/go-critic) to use. |
| go-junit-report-version | The version of [go-junit-report](https://github.com/jstemmer/go-junit-report) to use. |
| gomock-version | The version of [GoMock](https://github.com/golang/mock) to use. |
| gosec-version | The version of [gosec](https://github.com/securego/gosec) to use. |
| packer-version | The version of [Packer](https://packer.io) to use. |
| shfmt-version | The version of [shfmt](https://github.com/mvdan/sh#shfmt) to use. |
| staticcheck-version | The version of [staticcheck](https://github.com/dominikh/go-tools/tree/master/cmd/staticcheck) to use. |
| terraform-version | The version of [Terraform](https://terraform.io) to use. |
| terraform-docs-version | The version of [terraform-docs](https://github.com/terraform-docs/terraform-docs) to use. |

Expand Down
18 changes: 18 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,27 @@ branding:
color: purple
description: Setup a shared GitHub Actions workflow environment.
outputs:
go-critic-version:
description: The version of go-critic to use.
value: ${{ steps.go-critic.outputs.version }}
go-junit-report-version:
description: The version of jstemmer/go-junit-report to use.
value: ${{ steps.go-junit-report.outputs.version }}
gomock-version:
description: The version of golang/mock to use.
value: ${{ steps.gomock.outputs.version }}
gosec-version:
description: The version of gosec to use.
value: ${{ steps.gosec.outputs.version }}
packer-version:
description: The version of Packer to use.
value: ${{ steps.packer.outputs.version }}
shfmt-version:
description: The version of shfmt to use.
value: ${{ steps.shfmt.outputs.version }}
staticcheck-version:
description: The version of staticcheck to use.
value: ${{ steps.staticcheck.outputs.version }}
terraform-version:
description: The version of Terraform to use.
value: ${{ steps.terraform.outputs.version }}
Expand All @@ -28,18 +37,27 @@ outputs:
runs:
using: "composite"
steps:
- id: go-critic
run: echo "version=v0.8.1" >> $GITHUB_OUTPUT
shell: bash
- id: go-junit-report
run: echo "version=v2.0.0" >> $GITHUB_OUTPUT
shell: bash
- id: gomock
run: echo "version=v1.6.0" >> $GITHUB_OUTPUT
shell: bash
- id: gosec
run: echo "version=v2.16.0" >> $GITHUB_OUTPUT
shell: bash
- id: packer
run: echo "version=1.9.2" >> $GITHUB_OUTPUT
shell: bash
- id: shfmt
run: echo "version=v3.7.0" >> $GITHUB_OUTPUT
shell: bash
- id: staticcheck
run: echo "version=v0.4.3" >> $GITHUB_OUTPUT
shell: bash
- id: terraform
run: echo "version=1.5.5" >> $GITHUB_OUTPUT
shell: bash
Expand Down

0 comments on commit e3c058a

Please sign in to comment.