Skip to content

Commit

Permalink
ci: remove GITHUB_TOKEN from linter workflow
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
nixpanic committed Jun 28, 2023
1 parent d20966d commit a67b08a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/linter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a67b08a

Please sign in to comment.