Ensure that invalid versions do not cause a nil panic #6278
Workflow file for this run
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: "Lint" | |
on: # yamllint disable-line rule:truthy | |
push: | |
branches: | |
- "!dependabot/*" | |
- "main" | |
pull_request: | |
branches: ["*"] | |
merge_group: | |
types: | |
- "checks_requested" | |
jobs: | |
go-lint: | |
name: "Lint Go" | |
runs-on: "buildjet-4vcpu-ubuntu-2204" | |
steps: | |
- uses: "actions/checkout@v3" | |
- uses: "authzed/actions/setup-go@main" | |
- name: "Lint Go" | |
run: "go run mage.go lint:go" | |
- uses: "chainguard-dev/actions/nodiff@main" | |
with: | |
path: "" | |
fixup-command: "go run mage.go lint:go" | |
extra-lint: | |
name: "Lint YAML & Markdown" | |
runs-on: "buildjet-2vcpu-ubuntu-2204" | |
steps: | |
- uses: "actions/checkout@v3" | |
- name: "Lint Everything Else" | |
run: "go run mage.go lint:extra" | |
- uses: "chainguard-dev/actions/nodiff@main" | |
with: | |
path: "" | |
fixup-command: "go run mage.go lint:extra" |