Skip to content

fix(ci): skip Codecov upload for Dependabot PRs#6

Merged
JerrettDavis merged 1 commit into
mainfrom
fix/codecov-dependabot-token
Jun 22, 2026
Merged

fix(ci): skip Codecov upload for Dependabot PRs#6
JerrettDavis merged 1 commit into
mainfrom
fix/codecov-dependabot-token

Conversation

@JerrettDavis

Copy link
Copy Markdown
Owner

Summary

  • Dependabot PRs run with restricted secrets and cannot access CODECOV_TOKEN
  • The codecov/codecov-action step fails with HTTP 400 "Token required because branch is protected"
  • Build and tests pass successfully; only the coverage upload step fails
  • This fix adds if: github.actor != 'dependabot[bot]' to skip the Codecov step for Dependabot PRs

Test plan

🤖 Generated with Claude Code

Dependabot PRs run with restricted secrets and cannot access
CODECOV_TOKEN, causing the coverage upload step to fail with
HTTP 400. Skip the step for dependabot[bot] so Dependabot
dependency-bump PRs can pass CI.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

Code Coverage

Summary
  Generated on: 06/22/2026 - 18:11:19
  Coverage date: 06/22/2026 - 18:10:49 - 06/22/2026 - 18:11:16
  Parser: MultiReport (7x Cobertura)
  Assemblies: 3
  Classes: 7
  Files: 6
  Line coverage: 39.6%
  Covered lines: 86
  Uncovered lines: 131
  Coverable lines: 217
  Total lines: 515
  Branch coverage: 25.6% (21 of 82)
  Covered branches: 21
  Total branches: 82
  Method coverage: 62.1% (23 of 37)
  Full method coverage: 54% (20 of 37)
  Covered methods: 23
  Fully covered methods: 20
  Total methods: 37

Slncs                      89.2%
  Slncs.Solution            100%
  Slncs.SolutionBuilder      89%

Slncs.Sdk                  30.5%
  Slncs.Sdk.SlncsExec         0%
  Slncs.Sdk.SlncsRunner      90%
  Slncs.Sdk.SlnxParse         0%

SlncsGen                      0%
  Program                     0%
  SlncsGen.ScriptGlobals      0%

@JerrettDavis JerrettDavis merged commit eb0e4a4 into main Jun 22, 2026
4 checks passed
@JerrettDavis JerrettDavis deleted the fix/codecov-dependabot-token branch June 22, 2026 18:20
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