diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 5e20273bc..e969e6b36 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -3,9 +3,12 @@ on: push: pull_request: +permissions: + contents: read + jobs: golangci: - name: lint + name: Go linter if: ${{ github.actor != 'dependabot[bot]' }} runs-on: ubuntu-latest steps: @@ -13,12 +16,10 @@ jobs: with: fetch-depth: 0 + - name: golangci-lint + - uses: actions/setup-go@v2 + - uses: actions/checkout@v2 - name: golangci-lint uses: golangci/golangci-lint-action@v2 with: - # Optional: golangci-lint command line arguments. - args: --timeout 5m0s - # Optional: working directory, useful for monorepos - # working-directory: somedir - # Optional: show only new issues if it's a pull request. The default value is `false`. only-new-issues: true