Skip to content

Latest commit

 

History

History
38 lines (30 loc) · 1.51 KB

README.md

File metadata and controls

38 lines (30 loc) · 1.51 KB

Golang deadcode action

Run go's deadcode checker.

Usage

See action.yml

Basic

name: Go deadcode check
on: [ push ]
jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - name: check for deadcode
        uses: opzkit/[email protected]
        # optional
        with:
          go-version: '1.19'
          godeadcode-version: 'latest'
          packages: './...'

Inputs

Input Description
package (optional) The package you want to scan, default: "./..."
go-version (optional) The go version to use by the actions/setup-go action to setup go
go-version-file (optional) Path to the go.mod file to use for determining go version
check-latest (optional) Check for latest available go version that satisfies the version spec, default default: "false"
godeadcode-version (optional) The govuln version to use, default: "latest"