← Back to Guides
CI/CD Reports
Include charts in GitHub Actions, Jenkins, GitLab CI, and other pipelines.
GitHub Actions
Store your API key as a repository secret, then render a chart and upload it as an artifact or attach to a job summary.
jobs:
report:
runs-on: ubuntu-latest
steps:
- name: Render chart
run: |
curl -X POST https://chart-output.com/api/v1/render \
-H "Authorization: Bearer ${{ secrets.CHART_OUTPUT_API_KEY }}" \
-H "Content-Type: application/json" \
-d '{"type":"line","data":{"labels":["A","B","C"],"datasets":[{"data":[1,2,3]}]}}' \
-o chart.png
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: report-chart
path: chart.pngPR Comments
Use returnUrl: true to get a CDN URL, then embed in a PR comment with an image tag.
# Get chart URL
RESPONSE=$(curl -s -X POST https://chart-output.com/api/v1/render \
-H "Authorization: Bearer ${{ secrets.CHART_OUTPUT_API_KEY }}" \
-H "Content-Type: application/json" \
-d '{"type":"bar","data":{"labels":["Pass","Fail"],"datasets":[{"data":[42,3]}]},"returnUrl":true}')
URL=$(echo $RESPONSE | jq -r '.url')
# Post to PR with gh cli or GitHub APIJenkins
Use a shell step or Node/Python script to call the API. Store the API key in Jenkins credentials.