This action automates the process of uploading software artifacts to the NetRise Turbine Platform. The action uploads the artifact, queries the upload status, and returns the upload ID, upload status, and asset ID. It does not wait for processing to complete.
- uses: NetRiseInc/binary-composition-analysis@v1
with:
# Authentication Info
client-id: ""
client-secret: ""
organization-id: ""
domain: ""
audience: ""
endpoint: ""
# Asset Info
artifact-path: ""
name: ""
manufacturer: "" (optional)
model: "" (optional)
version: "" (optional)If you are using this in a self-hosted environment, provide the following environment variables before running the script action.py:
# Authentication Info
CLIENT_ID=""
CLIENT_SECRET=""
ORGANIZATION_ID=""
DOMAIN=""
AUDIENCE=""
ENDPOINT=""
# Asset Info
ARTIFACT_PATH=""
NAME=""
MANUFACTURER="" (optional)
MODEL="" (optional)
VERSION="" (optional)You can also provide a config.yaml file in the working directory of the script to provide authentication info. If you do this, you can omit the authentication environment variables. But please don't put this file in your repository, as it contains sensitive information.
The Authentication inputs are required as they provide necessary authentication information to NetRise's servers. You can find this information in your provided NetRise API configuration file (config.yaml). It is recommended to use GitHub's secret system to hold this data so as not to keep sensitive information in plain text in your repository.
The asset inputs configure how your software artifacts are sent to NetRise. Only two of these are required.
artifact-path (required): This is the path to your software artifact that will be submitted to Turbine for analysis.
name (required): This is the name of your software artifact. This can be whatever you want, it will be the primary label of the asset when submitted to Turbine.
manufacturer (optional): The manufacturer of your software artifact.
model (optional): The model of your software artifact.
version (optional): The current version of your software artifact. This field is optional, though it is very recommended.
After running, the action provides the following outputs:
upload-id - The ID for the upload job
uploaded - Boolean indicating if the upload is complete
asset-id - The asset's ID in the systemIf in a self-hosted environment, the action provides the following environment variables after running:
UPLOAD_ID - The ID for the upload job
UPLOADED - Boolean indicating if the upload is complete
ASSET_ID - The asset's ID in the systemThis exception occurs when a required input is not provided. Check the Usage section above to find which required input you are not providing. All inputs except those marked (optional) are required.
An exception has occurred while initially authenticating. This is likely due to incorrect authentication credentials, so double-check your auth info and ensure they match those in your given NetRise configuration file. This could also occur due to a network issue (e.g., failing to connect to NetRise's authentication servers in the first place).
An exception occurred when trying to submit your software artifact to Turbine. This is most likely a network issue: either failing to get an upload URL from NetRise's servers, or failing to upload the artifact to that URL. It is also possible this is an authentication issue, so double-check your authentication information.
You may contact us at support@netrise.com for any further questions.