This repository has been archived by the owner on Oct 22, 2024. It is now read-only.
Merge pull request #1104 from pohly/permissions #296
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: golangci-lint | |
on: | |
push: | |
tags: | |
- "v*" | |
branches: | |
- "*" | |
pull_request: | |
# Declare default permissions as read only. | |
permissions: read-all | |
jobs: | |
golangci: | |
name: lint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: golangci-lint | |
uses: golangci/golangci-lint-action@v2 | |
with: | |
# version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version | |
version: latest | |
# show only new issues if it's a pull request. The default value is `false`. | |
# We still have issues in the existing code, but at least should not make it worse. | |
only-new-issues: true | |
args: --timeout=20m |