Skip to content

fix: removing unit test cases upload step to code cov - #553

Merged
aavinash-nr merged 2 commits into
newrelic:masterfrom
aavinash-nr:fix/remove-codecov-from-node-release
Oct 12, 2026
Merged

aavinash-nr merged 2 commits into
newrelic:masterfrom
aavinash-nr:fix/remove-codecov-from-node-release

Conversation

@aavinash-nr

Copy link
Copy Markdown
Contributor

No description provided.

CodeQL flagged actions/missing-workflow-permissions across 12 workflows
that had no explicit permissions block, leaving the default GITHUB_TOKEN
scope implicit. Add least-privilege permissions to each:

- nodejs.yml, python.yml, ruby.yml: contents: read (checkout/lint/test only)
- validate-layer.yml, publish-java-agent.yml: contents: read (checkout +
  build/publish scripts, no GitHub API calls)
- publish-java.yml, publish-node.yml, publish-python.yml, publish-ruby.yml,
  publish-dotnet.yml, publish-extension.yml: contents: read, actions: read
  (notify-slack job uses `gh api .../actions/runs/{id}/jobs` and
  `gh run download` to build the Slack release summary)
- repolinter.yml: contents: read, issues: write (repolinter-action opens
  a GitHub issue on findings)

dependency-submission.yml already declared explicit permissions and was
left unchanged.

NR-560188
The "Upload Unit Test Coverage" step (codecov/codecov-action) ran after
the real layer/ECR publish steps in both publish-node and
publish-node-universal, with fail_ci_if_error: true. A Codecov-side
signature verification failure ("Could not verify signature") has been
failing this step on every recent run, which marks the whole job as
failed even though the layer had already published successfully.

Coverage reporting token changes can't fix this — the failure happens
during the Codecov CLI's own binary signature check, before the token
is ever used.

Removing the step entirely rather than patching it: a coverage-upload
step should never be able to block a release, and coverage visibility
is unaffected since nodejs.yml already archives the same lcov.info as
a build artifact on every push/PR.

@Sashwatdas123 Sashwatdas123 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@aavinash-nr
aavinash-nr merged commit ee4e353 into newrelic:master Oct 12, 2026
2 checks passed
aavinash-nr added a commit to aavinash-nr/newrelic-lambda-layers that referenced this pull request Oct 12, 2026
@aavinash-nr
aavinash-nr deleted the fix/remove-codecov-from-node-release branch October 12, 2026 10:00
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.

2 participants