From c63df0ca8525df5520376fe9efaae41df56196ec Mon Sep 17 00:00:00 2001 From: Holger Obermaier <40787752+ho-ob@users.noreply.github.com> Date: Fri, 23 Jan 2026 11:43:22 +0100 Subject: [PATCH] Use available report --- .github/workflows/runonce.yml | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/.github/workflows/runonce.yml b/.github/workflows/runonce.yml index 2ea12bf..d604f3e 100644 --- a/.github/workflows/runonce.yml +++ b/.github/workflows/runonce.yml @@ -50,22 +50,30 @@ jobs: run: go vet ./... # Running the linter requires likwid.h, which gets downloaded in the build step - - name: Run Static Analysis with staticcheck (produce JSON) + - name: Run Static Analysis with staticcheck run: | go install honnef.co/go/tools/cmd/staticcheck@latest staticcheck -f json ./... > staticcheck.json || true - - name: Upload staticcheck JSON + - name: Upload staticcheck Report uses: actions/upload-artifact@v4 with: name: staticcheck-json path: staticcheck.json - - name: Report staticcheck results via reviewdog - uses: reviewdog/action-staticcheck@v1 - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - reporter: github-pr-check + - name: Install reviewdog + run: | + go install github.com/reviewdog/reviewdog/cmd/reviewdog@latest + + - name: Report staticcheck results via reviewdog (use uploaded JSON) + run: | + # ensure reviewdog is in PATH + echo "$PATH" + which reviewdog + export PATH="$PATH:$(go env GOPATH)/bin" + cat staticcheck.json | $(go env GOPATH)/bin/reviewdog -f=staticcheck -name=staticcheck -reporter=github-pr-check -filter-mode=nofilter || true + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # # Build on AlmaLinux 8 using go-toolset