Categorygithub.com/matoous/golangci-lint-action
modulepackage
1.23.3
Repository: https://github.com/matoous/golangci-lint-action.git
Documentation: pkg.go.dev

# README

Dependabot status

GolangCI-Lint Action

This Action runs GolangCI-Lint on your Go code and adds optional annotations to the check.

Usage

Checkout

- name: Check out code into the Go module directory
  uses: actions/[email protected]

Use by building from repository

- name: Run GolangCI-Lint Action by building from repository
  uses: matoous/[email protected]

Use by pulling pre-built image (faster execution time, less secure)

- name: Run GolangCI-Lint Action by pulling pre-built image
  uses: docker://matoous/golangci-lint-action:v1.1.0

Configuration

  with:
    # Path to your GolangCI-Lint config within the repo (optional)
    config: .golangci.yml
  env:
    # GitHub token for annotations (optional)
    GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# Structs

Report contains the data returned by golangci lint parsed from json.