Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
check-circle

GitHub Action

Nilaway Action

v0.0.1

Nilaway Action

check-circle

Nilaway Action

Simple GitHub Action that detects potential Nil panics in Golang codebases

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Nilaway Action

uses: qbaware/nilaway-action@v0.0.1

Learn more about this action in qbaware/nilaway-action

Choose a version

Nilaway GitHub Action

GitHub Super-Linter CI CD

This is a simple GitHub Action that checks Golang codebases for potential Nil panics.

How To Use

Define The Inputs

First, make sure to define the necessary input for the Action. You'd have to provide a package that has to be scanned.

To do this, you can leverage GitHub variables. In short, go to your repository's Settings tab and add the variables under Secrets and variables then Actions.

Modify Your Action

Add the following deploy job in your Action.

nil-check:
  # Assuming the `build` job builds the project,
  # we define a dependency on it.
  needs: build

  runs-on: ubuntu-latest
  steps:
    - name: Scan using nilaway
      uses: qbaware/nilaway-action@v0
      with:
        package-to-scan: "./..."

That's It 🎉

Sample Workflow View

Sample workflow