From d0c83ec1a25ac9ed6f5a4c7e7a90c5ccfcea67e2 Mon Sep 17 00:00:00 2001 From: Ivan Date: Tue, 15 Jul 2025 14:06:18 -0500 Subject: [PATCH] update revive workflow --- .github/workflows/revive.yml | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/.github/workflows/revive.yml b/.github/workflows/revive.yml index c89130a..5f3a025 100644 --- a/.github/workflows/revive.yml +++ b/.github/workflows/revive.yml @@ -6,12 +6,11 @@ on: pull_request: branches: [ "main" ] -permissions: - contents: write - pull-requests: write - jobs: lint: + permissions: + contents: read + pull-requests: read runs-on: ubuntu-latest steps: - name: Checkout code @@ -25,11 +24,6 @@ jobs: - name: Install revive run: go install github.com/mgechev/revive@latest - - name: Run revive and generate SARIF report + - name: Run revive run: | - revive -config revive.toml -formatter sarif ./... > revive-results.sarif || true - - - name: Upload SARIF report - uses: github/codeql-action/upload-sarif@v3 - with: - sarif_file: revive-results.sarif + revive -config revive.toml -formatter stylish ./...