@@ -42,28 +42,21 @@ jobs:
4242 - name : Verify generated files
4343 run : make generate check-generated
4444 - name : Run nobin
45- run : >-
46- go tool -modfile=./hack/tools/go.mod nobin
47- --allow-emoji
48- --allow-escape
49- --gitignore
50- --skip-ext pb.desc
51- --skip 'website/static/images/**/*.{gif,png}'
52- --skip 'docs/reports/**/*.pdf'
45+ run : make nobin
5346 - name : Run editorconfig-checker
54- run : go tool -modfile=./hack/tools/go.mod editorconfig-checker
47+ run : make editorconfig-checker
5548 - name : Run yamllint
56- run : yamllint .
49+ run : make yamllint
5750 - name : Install shellcheck
5851 run : |
5952 sudo apt-get update
6053 sudo apt-get install -y shellcheck
6154 - name : Run file and directory name linter
6255 uses : ls-lint/action@02e380fe8733d499cbfc9e22276de5085508a5bd # v2.3.1
6356 - name : Run shellcheck
64- run : find . -name '*.sh' | xargs shellcheck
57+ run : make shellcheck
6558 - name : Run shfmt
66- run : find . -name '*.sh' | xargs go tool -modfile=./hack/tools/go.mod shfmt -s -d
59+ run : make shfmt
6760 - name : Check hyperlinks
6861 uses : lycheeverse/lychee-action@8646ba30535128ac92d33dfc9133794bfdd9b411 # v2.8.0
6962 with :
@@ -79,16 +72,13 @@ jobs:
7972 # TODO: move to `go tool` after upgrading to v2
8073 run : go install github.com/google/go-licenses@v1.6.0
8174 - name : Check licenses
82- # the allow list corresponds to https://github.com/cncf/foundation/blob/e5db022a0009f4db52b89d9875640cf3137153fe/allowed-third-party-license-policy.md
83- # hashicorp/hcl/v2 is MPL-2.0; covered by the CNCF license exception for hashicorp/hcl
84- # see also https://github.com/cncf/foundation/issues/1242
85- run : go-licenses check --include_tests --ignore github.com/hashicorp/hcl/v2 ./... --allowed_licenses=$(cat ./hack/allowed-licenses.txt)
75+ run : make go-licenses
8676 - name : Check license boilerplates
87- run : go tool -modfile=./hack/tools/go.mod ltag -t ./hack/ltag --check -v
77+ run : make ltag
8878 - name : Check protobuf files
89- run : go tool -modfile=./hack/tools/go.mod protolint .
79+ run : make protolint
9080 - name : Run zizmor
91- uses : zizmorcore/zizmor-action@b1d7e1fb5de872772f31590499237e7cce841e8e # v0.5.3
81+ uses : zizmorcore/zizmor-action@5f14fd08f7cf1cb1609c1e344975f152c7ee938d # v0.5.6
9282 with :
9383 # No need to hide the result in https://github.com/lima-vm/lima/security (private),
9484 # as anybody can already run zizmor locally to find vulnerabilities.
@@ -123,10 +113,11 @@ jobs:
123113 run : |
124114 echo "GOLANGCI_LINT_VERSION=$(go list -m -f '{{.Version}}' github.com/golangci/golangci-lint/v2)" >> $GITHUB_OUTPUT
125115 - name : Run golangci-lint
126- uses : golangci/golangci-lint-action@1e7e51e771db61008b38414a730f564565cf7c20 # v9.2.0
116+ uses : golangci/golangci-lint-action@82606bf257cbaff209d206a39f5134f0cfbfd2ee # v9.2.1
127117 with :
128118 version : ${{ steps.golangci-lint-version.outputs.GOLANGCI_LINT_VERSION }}
129119 args : --verbose
120+ skip-cache : true
130121
131122 security :
132123 name : " Vulncheck"
@@ -245,10 +236,7 @@ jobs:
245236 run : make
246237 - name : Install QEMU
247238 run : |
248- # Pin to 10.2.0: QEMU 11.0.0 TCG breaks systemd boot on the Windows
249- # runner with "Failed to fork off sandboxing environment: Protocol
250- # error", blocking SSH.
251- winget install --silent --accept-source-agreements --accept-package-agreements --disable-interactivity SoftwareFreedomConservancy.QEMU --version 10.2.0
239+ winget install --silent --accept-source-agreements --accept-package-agreements --disable-interactivity SoftwareFreedomConservancy.QEMU
252240 - name : Integration tests (QEMU, Windows host)
253241 run : |
254242 $env:PATH = "$pwd\_output\bin;" + 'C:\msys64\usr\bin;' + 'C:\Program Files\QEMU;' + $env:PATH
0 commit comments