Skip to content

CI: add CodeQL workflow and harden Actions workflows#547

Merged
AndreyVMarkelov merged 1 commit into
mainfrom
ci/codeql-and-workflow-hardening
Jul 16, 2026
Merged

CI: add CodeQL workflow and harden Actions workflows#547
AndreyVMarkelov merged 1 commit into
mainfrom
ci/codeql-and-workflow-hardening

Conversation

@AndreyVMarkelov

Copy link
Copy Markdown
Contributor

Fixes CodeQL language:actions findings and adds a real scanning workflow.

Changes

  • codeql.yml (new): scans actions + python on push/PR to main and weekly (Mon 00:00 UTC). Replaces reliance on stale default-setup scans.
  • spec_update.yml: migrate deprecated ::set-output (disabled by GitHub in 2023) to $GITHUB_OUTPUT; pass interpolated ${{ }} values via env: to close shell-injection findings.
  • pypiupload.yml: add top-level least-privilege permissions: contents: read, matching the other workflows.

Verification

  • All workflow YAML parses.
  • actionlint clean (no injection/permission/set-output errors).
  • Simulated the new $GITHUB_OUTPUT heredoc with a multiline commit body containing %, $, backticks — preserved literally, confirming the old escaping is no longer needed.

@codecov

codecov Bot commented Jul 16, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 65.19%. Comparing base (75ec373) to head (ae489eb).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #547   +/-   ##
=======================================
  Coverage   65.19%   65.19%           
=======================================
  Files          34       34           
  Lines       65205    65205           
  Branches     4642     4642           
=======================================
  Hits        42508    42508           
  Misses      22536    22536           
  Partials      161      161           
Flag Coverage Δ
integration 65.04% <ø> (ø)
unit 64.80% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@AndreyVMarkelov
AndreyVMarkelov force-pushed the ci/codeql-and-workflow-hardening branch from fd871ce to ae489eb Compare July 16, 2026 00:19
@AndreyVMarkelov
AndreyVMarkelov merged commit e3c8267 into main Jul 16, 2026
35 checks passed
@AndreyVMarkelov
AndreyVMarkelov deleted the ci/codeql-and-workflow-hardening branch July 16, 2026 00:32
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