Use this GitHub Action (GHA) for deployment traceability: inform CloudBees Unify that an artifact version has been deployed to an environment. This enables DORA metrics, environment inventory tracking, and deployment analytics for artifacts deployed through GHA workflows.
This action is available on the GitHub marketplace.
To learn more about working with artifacts in CloudBees Unify, refer to the build artifacts documentation.
Prerequisites
Set up CloudBees Unify and GHA to work together, providing key features of CloudBees Unify to GHA workflows. Refer to Getting started for more information.
Inputs
| Input name | Data type | Required? | Description |
|---|---|---|---|
|
String |
No |
URL of the CloudBees Unify API.
Defaults to |
|
String |
Yes |
Deployment environment. You must create the environment in CloudBees Unify before using it in this action. |
|
String |
No |
Comma-separated labels for this deployment. |
|
String |
No |
ID of the artifact, generated by the |
|
String |
No |
URL of the deployed artifact.
Either this or |
Outputs
This action produces no output.
This version of the action uses GitHub OIDC authentication to securely communicate with CloudBees Unify. Be sure to set permissions to id-token: write in your workflow.
|
Usage examples
The following is a basic example of using the action:
permissions: id-token: write contents: read steps: - name: register-deployment-step uses: cloudbees-io-gha/register-deployed-artifact with: target-environment: production labels: latest artifact-id: 87ace777-ab20-4867-ac3f-ad5c28f46a29
The following example uses the artifact URL instead of the artifact ID: