Skip to content

GitHub Action

Nexus IQ for GitHub Actions

1.1.0 Latest version
Use latest version

Nexus IQ for GitHub Actions

Run a Nexus IQ policy evaluation as part of your GitHub Actions workflow


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

- name: Nexus IQ for GitHub Actions
  uses: sonatype-nexus-community/iq-github-action@1.1.0
Learn more about this action in sonatype-nexus-community/iq-github-action
Choose a version

Nexus IQ for GitHub Actions

Run a Nexus IQ policy evaluation as part of your GitHub Actions workflow.



Required Nexus IQ Server URL


Required Username to connect to IQ Server for policy evaluation


Required Password to connect to IQ Server for policy evaluation


Required Determines the policy elements (policies, labels, and license threat groups) to associate with this build, and is managed via the Nexus IQ Server.


Required Controls the stage the policy evaluation will be run against on the Nexus IQ Server.


Required This is the path to a specific application archive file, a directory containing such archives or the ID of a Docker image. For archives, a number of formats are supported, including jar, war, ear, tar, tar.gz, zip and many others.

Example Usage

Maven Build

name: Maven CI with Nexus IQ

on: [push]


    runs-on: ubuntu-latest

    - uses: actions/checkout@v1
    - name: Set up JDK 1.8
      uses: actions/setup-java@v1
        java-version: 1.8
    - name: Build with Maven
      run: mvn package --file pom.xml
    - name: Nexus IQ Policy Evaluation
      uses: sonatype-nexus-community/iq-github-action@master
        serverUrl: http://nexus-iq-server
        username: username
        password: ${{ secrets.password }}
        applicationId: sample-maven
        stage: Build
        target: ./target/

The Fine Print

It is worth noting that this is NOT SUPPORTED by Sonatype, and is a contribution of ours to the open source community (read: you!)


  • Use this contribution at the risk tolerance that you have
  • Do NOT file Sonatype support tickets related to IQ for GitHub Actions support in regard to this project
  • DO file issues here on GitHub, so that the community can pitch in

Phew, that was easier than I thought. Last but not least of all:

Have fun creating and using IQ for GitHub Actions, we are glad to have you here!

Getting help

Looking to contribute to our code but need some help? There's a few ways to get information:

You can’t perform that action at this time.