diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index c037191a8a9..2b5505ef54e 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -103,4 +103,11 @@ jobs: - name: Get staticcheck run: go install honnef.co/go/tools/cmd/staticcheck@latest - name: Run staticcheck - run: GOGC=30 staticcheck ./... + run: | + # staticcheck requires a lot of free disk space in /tmp. Free up worker + # space by removing unnecessary tooling. + rm -rf /usr/share/dotnet + rm -rf /usr/local/share/boost + rm -rf /usr/local/lib/android + rm -rf /opt/hostedtoolcache/CodeQL + GOGC=30 staticcheck ./...