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.
Maven Build
name: Maven CI with Nexus IQ
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
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
with:
serverUrl: http://nexus-iq-server
username: username
password: ${{ secrets.password }}
applicationId: sample-maven
stage: Build
target: ./target/
It is worth noting that this is NOT SUPPORTED by Sonatype, and is a contribution of ours to the open source community (read: you!)
Remember:
- 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!
Looking to contribute to our code but need some help? There's a few ways to get information:
- Chat with us on Gitter