first commit #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Linting | |
on: | |
push: | |
jobs: | |
golangci: | |
name: Linting | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out Code | |
uses: actions/checkout@v3 | |
- uses: goplugin/[email protected] | |
id: go-version | |
- run: echo ${{ steps.go-version.outputs.golang_version }} | |
- name: Install Go ${{ steps.go-version.outputs.golang_version }} | |
uses: actions/setup-go@v3 | |
with: | |
go-version: ${{ steps.go-version.outputs.golang_version }} | |
- name: golangci-lint | |
uses: golangci/golangci-lint-action@v3 | |
vulnerabilities-check: | |
name: Check for Vulnerabilities | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out Code | |
uses: actions/checkout@v3 | |
- uses: goplugin/[email protected] | |
id: go-version | |
- name: Install Go ${{ steps.go-version.outputs.golang_version }} | |
uses: actions/setup-go@v3 | |
with: | |
go-version: ${{ steps.go-version.outputs.golang_version }} | |
- name: Write Go List | |
run: go list -json -deps ./... > go.list | |
- name: Nancy | |
uses: sonatype-nexus-community/nancy-github-action@main | |
helm-template-check: | |
name: Verify Helm Template Formats | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out Code | |
uses: actions/checkout@v3 | |
- uses: goplugin/[email protected] | |
id: tool-versions | |
- uses: azure/[email protected] | |
with: | |
version: ${{ steps.tool-versions.outputs.helm_version }} | |
- name: Check templates | |
run: make lint_helm_templates | |
actionlint: | |
name: Validate Github Action Workflows | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out Code | |
uses: actions/checkout@v3 | |
- name: Install asdf dependencies | |
uses: asdf-vm/actions/[email protected] | |
- name: Run actionlint | |
run: actionlint |