Skip to content

chore: bump actions + enable codecov badge - #8

Merged
Liohtml merged 1 commit into
mainfrom
fix/codecov-and-actions
May 21, 2026
Merged

chore: bump actions + enable codecov badge#8
Liohtml merged 1 commit into
mainfrom
fix/codecov-and-actions

Conversation

@Liohtml

@Liohtml Liohtml commented May 21, 2026

Copy link
Copy Markdown
Owner

Changes

  • astral-sh/setup-uv v5 → v7
  • codecov/codecov-action v4 → v6
  • github/codeql-action v3 → v4
  • Re-add codecov badge to README (CODECOV_TOKEN secret now configured)

Resolves the 3 closed dependabot PRs (#3, #4, #5) in one go.

Summary by CodeRabbit

  • Chores

    • Updated GitHub Actions CI workflow to use newer setup tools and coverage action versions.
    • Updated CodeQL security analysis workflow to use latest action versions.
  • Documentation

    • Added Codecov coverage badge to the README.

Review Change Stack

…v badge

- astral-sh/setup-uv v5 -> v7
- codecov/codecov-action v4 -> v6
- github/codeql-action v3 -> v4
- Re-add codecov badge to README (CODECOV_TOKEN now configured)
@coderabbitai

coderabbitai Bot commented May 21, 2026

Copy link
Copy Markdown
📝 Walkthrough

Walkthrough

This PR upgrades GitHub Actions dependencies across the CI and CodeQL workflows and adds a Codecov coverage badge to the README. The CI workflow moves from astral-sh/setup-uv v5 to v7 and codecov v4 to v6; the CodeQL workflow updates from v3 to v4 for both init and analyze steps.

Changes

GitHub Actions and Documentation Updates

Layer / File(s) Summary
CI workflow dependency upgrades
.github/workflows/ci.yml
astral-sh/setup-uv upgraded from v5 to v7 across lint, type-check, security, and test jobs; codecov/codecov-action upgraded from v4 to v6 in the test job.
CodeQL workflow action upgrades
.github/workflows/codeql.yml
github/codeql-action/init and github/codeql-action/analyze upgraded from v3 to v4.
README coverage badge
README.md
Codecov coverage badge added to the README's top status badge row.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

  • Liohtml/MedCheck#7: Updates to the README badge row (this PR adds a Codecov badge while the related PR modifies other badges).

Suggested labels

dependencies, github_actions

Poem

🐰 Hop, hop, hoorah!
Actions upgraded with care,
Uv v7 speeds the air,
Codecov shines so bright and fair,
CI workflows everywhere!

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately summarizes the main changes: bumping GitHub Actions versions and enabling the codecov badge, matching the primary objectives of this PR.
Description check ✅ Passed The description includes the key changes and mentions resolving related dependabot PRs, but omits the Summary section header and Testing checklist specified in the template.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/codecov-and-actions

Comment @coderabbitai help to get the list of available commands and usage tips.

@codecov-commenter

Copy link
Copy Markdown

Welcome to Codecov 🎉

Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests.

ℹ️ You can also turn on project coverage checks and project coverage reporting on Pull Request comment

Thanks for integrating Codecov - We've got you covered ☂️

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In @.github/workflows/ci.yml:
- Line 18: Replace tag/branch action refs with immutable commit SHAs: update
uses entries like astral-sh/setup-uv@v7, actions/checkout@v6,
codecov/codecov-action@v6, github/codeql-action/init@v4, and
github/codeql-action/analyze@v4 to their corresponding full commit SHA pins (you
can append a comment like "# v7" or "# v6" for readability); ensure every
occurrence of those refs across the workflows is replaced so the actions are
pinned to a specific commit SHA.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: f1303cc8-1fed-48a9-ac1b-dca604d16c43

📥 Commits

Reviewing files that changed from the base of the PR and between 357cf54 and 7949215.

📒 Files selected for processing (3)
  • .github/workflows/ci.yml
  • .github/workflows/codeql.yml
  • README.md

Comment thread .github/workflows/ci.yml
steps:
- uses: actions/checkout@v6
- uses: astral-sh/setup-uv@v5
- uses: astral-sh/setup-uv@v7

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟠 Major | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
# Verify mutable action refs in workflows (tag/branch refs instead of commit SHAs)
rg -nP '^\s*-\s*uses:\s*[^@]+@(v\d+|main|master)\s*$' .github/workflows/*.yml

Repository: Liohtml/MedCheck

Length of output: 851


🏁 Script executed:

#!/bin/bash
set -euo pipefail

echo "== ci.yml (relevant lines) =="
nl -ba .github/workflows/ci.yml | sed -n '1,120p'

echo
echo "== codeql.yml (relevant lines) =="
nl -ba .github/workflows/codeql.yml | sed -n '1,120p'

echo
echo "== All mutable action refs in workflows (tag/branch refs) =="
rg -nP '^\s*-\s*uses:\s*[^@]+@(v\d+|main|master)\s*$' .github/workflows/*.yml

Repository: Liohtml/MedCheck

Length of output: 151


🏁 Script executed:

#!/bin/bash
set -euo pipefail

echo "== ci.yml (relevant lines) =="
nl -ba .github/workflows/ci.yml | sed -n '1,140p'

echo
echo "== codeql.yml (relevant lines) =="
nl -ba .github/workflows/codeql.yml | sed -n '1,120p'

echo
echo "== All mutable action refs in workflows (tag/branch refs) =="
rg -nP '^\s*-\s*uses:\s*[^@]+@(v\d+|main|master)\s*$' .github/workflows/*.yml

Repository: Liohtml/MedCheck

Length of output: 151


🏁 Script executed:

#!/bin/bash
set -euo pipefail

echo "== ci.yml (relevant lines) =="
nl -ba .github/workflows/ci.yml | sed -n '1,160p'

echo
echo "== codeql.yml (relevant lines) =="
nl -ba .github/workflows/codeql.yml | sed -n '1,140p'

echo
echo "== All mutable action refs in workflows (tag/branch refs) =="
rg -nP '^\s*-\s*uses:\s*[^@]+@(v\d+|main|master)\s*$' .github/workflows/*.yml

Repository: Liohtml/MedCheck

Length of output: 151


🏁 Script executed:

#!/bin/bash
set -euo pipefail

python3 - <<'PY'
from pathlib import Path

def show(path, start, end):
    p = Path(path)
    lines = p.read_text().splitlines()
    print(f"\n== {path} (lines {start}-{end}) ==")
    for i in range(start, min(end, len(lines)) + 1):
        print(f"{i:>4}: {lines[i-1]}")

show(".github/workflows/ci.yml", 1, 90)
show(".github/workflows/codeql.yml", 1, 80)
PY

echo
echo "== All mutable action refs in workflows (tag/branch refs) =="
rg -nP '^\s*-\s*uses:\s*[^@]+@(v\d+|main|master)\s*$' .github/workflows/*.yml

Repository: Liohtml/MedCheck

Length of output: 3310


Pin workflow actions to immutable commit SHAs.

Tag/branch-pinned action refs are still used, weakening supply-chain integrity:

  • .github/workflows/ci.yml: astral-sh/setup-uv@v7 (lines 18, 27, 35, 48), actions/checkout@v6 (lines 17, 26, 34, 47), codecov/codecov-action@v6 (line 53)
  • .github/workflows/codeql.yml: actions/checkout@v6 (line 15), github/codeql-action/init@v4 (line 16), github/codeql-action/analyze@v4 (line 19)
Current snippet (line 18)
      - uses: astral-sh/setup-uv@v7

Pin each uses: to a full commit SHA (you may keep # v7 / # v6 readability comments).

🧰 Tools
🪛 zizmor (1.25.2)

[error] 18-18: unpinned action reference (unpinned-uses): action is not pinned to a hash (required by blanket policy)

(unpinned-uses)

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In @.github/workflows/ci.yml at line 18, Replace tag/branch action refs with
immutable commit SHAs: update uses entries like astral-sh/setup-uv@v7,
actions/checkout@v6, codecov/codecov-action@v6, github/codeql-action/init@v4,
and github/codeql-action/analyze@v4 to their corresponding full commit SHA pins
(you can append a comment like "# v7" or "# v6" for readability); ensure every
occurrence of those refs across the workflows is replaced so the actions are
pinned to a specific commit SHA.

@Liohtml
Liohtml merged commit f3e4589 into main May 21, 2026
13 checks passed
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