Share a Kubescape report
A Kubernetes posture score is a number that only means something over
time, and against a set of decisions. Control 1.2.3 is failing because a
DaemonSet legitimately needs hostPID. Control 4.5.6 is failing because
nobody has got to it. Same red row, completely different follow-up.
Kubescape writes the rows. Where the follow-up lives is up to you, and in most setups it lives in a Slack thread that is gone by the next scan.
Publish it
kubescape scan framework nsa \
--format html --output kubescape.html || true
curl -fsS -X PATCH \
"https://commareports.com/api/v1/reports/$COMMA_REPORT_ID" \
-H "Authorization: Bearer $COMMA_API_TOKEN" \
-H "Content-Type: application/json" \
-d "$(jq -n --rawfile html kubescape.html \
--arg title "Kubescape — $CLUSTER — $(date +%F)" \
'{title: $title, html: $html}')"
|| true because a failing threshold is the run you want at a URL. One
report id per cluster or per environment; PATCH appends a revision each
scan, so prod has a posture history rather than a current snapshot.
Use a scoped token with reports:write only. Keep it
private or team-visible — see the sharing model.