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.
This action is a Preview feature and is not yet fully supported by CloudBees. |
A Preview feature:
Product features and documentation are frequently updated. If you find an issue or have a suggestion, please contact CloudBees Support. |
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-gha-cbp/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 in the Evidence tab of 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 |
|
|
|