Use this GitHub Action (GHA) to capture job-level evidence data in Markdown format in a GHA workflow run and publish it to the CloudBees platform. The evidence is displayed on the Evidence tab of Run details for your run. For more information, refer to Evidence.
This action is available on the GitHub marketplace.
Prerequisites
Set up the CloudBees platform and GHA to work together, providing key features of the platform to GHA workflows. Refer to Getting started for more information.
Inputs
Input name | Data type | Required? | Description |
---|---|---|---|
|
String |
Yes |
|
|
String |
Yes |
The content to be published as evidence. |
|
String |
No |
The CloudBees platform URL.
The default value is |
The required markup language format for the evidence content is Markdown. |
Usage examples
Basic example
The following is a basic example of using the action:
steps: - name: Publish evidence uses: cloudbees-io-gha/publish-evidence-item@v1 with: cloudbees-pat: ${{ secrets.MY_PAT }} content: |- # Sample Markdown evidence output - Application endpoint: https://app.example.com/qa - Artifacts - [backend.jar](https://example.com/repo/app/v1.0/backend.jar)
Full workflow and run example
The following GHA workflow example uses this action to publish evidence to the CloudBees platform.
Example GHA workflow YAML file
After the run has completed, the evidence output is collected and displayed. Select a job on the left pane in the Evidence tab for that job in the Run details.

This action also supports system property references, such as ${{ cloudbees.run_id }} or ${{ vars.api_endpoint }} .
|
Markdown syntax support
For more information, refer to the Markdown documentation.
Markdown syntax | Supported? | Example | Rendered output |
---|---|---|---|
Bulleted list |
|
|
|
Character codes |
|
|
© | |
Code |
|
|
|
External content |
|
|
|
Formatting |
|
|
bold text |
Headings |
|
|
|
HTML/Color |
|
||
Hyperlink |
|
|
|
Line break |
|
||
Quoted text (Blockquotes) |
|
|
A block quote of text such as this example.
— Anonymous
|
Table |
|
|
|