From a67b08a5b24928b6b33dcd5023b7fe43a8f22701 Mon Sep 17 00:00:00 2001 From: Niels de Vos Date: Wed, 28 Jun 2023 16:15:22 +0200 Subject: [PATCH] ci: remove `GITHUB_TOKEN` from linter workflow Linter logs contain lots of errors like these: [INFO] ERROR! Failed to call GitHub Status API! [INFO] ERROR:[curl: (22) The requested URL returned error: 403] By removing the `GITHUB_TOKEN` option, only the general result of the linter is added to the PR status. There is no need to try and set the status if it always fails, and the warnings can look confusing. Signed-off-by: Niels de Vos --- .github/workflows/linter.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/linter.yaml b/.github/workflows/linter.yaml index 3e1a96e..db60826 100644 --- a/.github/workflows/linter.yaml +++ b/.github/workflows/linter.yaml @@ -7,15 +7,15 @@ on: jobs: test-lint: runs-on: ubuntu-latest + steps: - name: checkout source uses: actions/checkout@v2 - name: Lint Code Base - uses: github/super-linter@v4 + uses: github/super-linter@v5 env: LINTER_RULES_PATH: extras - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # disabling go test as its auto generated code VALIDATE_GO: false # disabling linting process of the natural language