Skip to content

ci: wire the Codacy coverage upload so it self-activates - #59

Merged
FMSMITH91 merged 1 commit into
mainfrom
ci/codacy-coverage-upload
Aug 8, 2026
Merged

ci: wire the Codacy coverage upload so it self-activates#59
FMSMITH91 merged 1 commit into
mainfrom
ci/codacy-coverage-upload

Conversation

@FMSMITH91

Copy link
Copy Markdown
Owner

The upload step was commented out with instructions — which means enabling it needs a second PR someone has to remember.

It's live now, guarded by if: env.CODACY_PROJECT_TOKEN != '':

  • No secret → the step skips, the job stays green, nothing changes.
  • Secret added → it starts uploading on the next run, with no code change.

(The secret has to be job-level env for a step's if to see it.)

The comment also now names which token, because the two are easy to confuse: a repository token, not an account one. An account token carries your whole Codacy user's permissions across every repo; the repository token is scoped to this one, so a leak can't reach anything else.

🤖 Generated with Claude Code

The step was commented out with instructions, which meant enabling it needed a
second PR that someone has to remember. It is live now and guarded by
`if: env.CODACY_PROJECT_TOKEN != ''`, so with no secret it simply skips and
the job stays green — and it starts uploading by itself the moment the secret
is added. The secret has to be job-level env for the step's `if` to see it.

The comment now names WHICH token: a repository token (Codacy → the repo →
Settings → Integrations), not an account one. An account token carries the
whole Codacy user's permissions across every repo; the repository token is
scoped to this one, so a leak cannot reach anything else.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@FMSMITH91
FMSMITH91 merged commit 38f0650 into main Aug 8, 2026
19 checks passed
@FMSMITH91
FMSMITH91 deleted the ci/codacy-coverage-upload branch August 8, 2026 19:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant