mirror of
https://github.com/golangci/golangci-lint-action.git
synced 2025-12-16 15:38:28 +00:00
- Allows verbose reporting of Issues in Run Terminal/Log. - Correctly maps Issue Severity to GitHub Severity - Additionally adds support for Severity Failure levels (defaults to 'notice' [all]) - Adds suggested fixes to Annotation Raw Details - Prepares foundation for supporting Comments - Adds support for Multi-Line Annotations - Adds mapping for common Issue Severities to GitHub Severities (Code climate | Checkstyle | GitHub) - Adds handeling of 'Ignore' Issue Severity (removes from Issue List) - Adds support for Character Range Annotations
45 lines
1.6 KiB
YAML
45 lines
1.6 KiB
YAML
name: "Run golangci-lint"
|
|
description: "Official golangci-lint action with line-attached annotations for found issues, caching and parallel execution."
|
|
author: "golangci"
|
|
inputs:
|
|
version:
|
|
description: "version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version"
|
|
required: false
|
|
args:
|
|
description: "golangci-lint command line arguments"
|
|
default: ""
|
|
required: false
|
|
working-directory:
|
|
description: "golangci-lint working directory, default is project root"
|
|
required: false
|
|
github-token:
|
|
description: "the token is used for fetching patch of a pull request to show only new issues"
|
|
default: ${{ github.token }}
|
|
required: true
|
|
only-new-issues:
|
|
description: "if set to true and the action runs on a pull request - the action outputs only newly found issues"
|
|
default: false
|
|
required: true
|
|
skip-go-installation:
|
|
description: "if set to true then action uses pre-installed Go"
|
|
default: false
|
|
required: true
|
|
skip-pkg-cache:
|
|
description: "if set to true then the action don't cache or restore ~/go/pkg."
|
|
default: false
|
|
required: true
|
|
skip-build-cache:
|
|
description: "if set to true then the action don't cache or restore ~/.cache/go-build."
|
|
default: false
|
|
required: true
|
|
failure-level:
|
|
description: "lowest issue severity to continue failing on (if golangci-lint exits with exit code 1), defaults to 'notice', may be: 'notice' | 'warning' | 'failure'"
|
|
default: "notice"
|
|
required: false
|
|
runs:
|
|
using: "node12"
|
|
main: "dist/run/index.js"
|
|
post: "dist/post_run/index.js"
|
|
branding:
|
|
icon: "shield"
|
|
color: "yellow"
|