Skip to content

workflows: add explicit permissions to fix CodeQL warnings#177

Merged
adrianreber merged 1 commit into
checkpoint-restore:mainfrom
adrianreber:2025-12-10-codeql
Dec 10, 2025
Merged

workflows: add explicit permissions to fix CodeQL warnings#177
adrianreber merged 1 commit into
checkpoint-restore:mainfrom
adrianreber:2025-12-10-codeql

Conversation

@adrianreber

Copy link
Copy Markdown
Member

Add explicit permissions blocks to GitHub Actions workflows that were missing them. This fixes CodeQL warnings about workflows not containing permissions declarations.

All workflows now specify 'contents: read' at the top level, following the principle of least privilege. Jobs that require additional permissions can still override at the job level.

Workflows updated:

  • check-size.yml
  • coverage.yml
  • tests.yml
  • verify.yml

🤖 Generated with Claude Code

Add explicit permissions blocks to GitHub Actions workflows that were
missing them. This fixes CodeQL warnings about workflows not containing
permissions declarations.

All workflows now specify 'contents: read' at the top level, following
the principle of least privilege. Jobs that require additional
permissions can still override at the job level.

Workflows updated:
- check-size.yml
- coverage.yml
- tests.yml
- verify.yml

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Signed-off-by: Adrian Reber <areber@redhat.com>
@github-actions

Copy link
Copy Markdown

Test Results

61 tests  ±0   61 ✅ ±0   2s ⏱️ ±0s
 1 suites ±0    0 💤 ±0 
 1 files   ±0    0 ❌ ±0 

Results for commit 0505009. ± Comparison against base commit 1d6f6e4.

@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 74.14%. Comparing base (1d6f6e4) to head (0505009).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #177   +/-   ##
=======================================
  Coverage   74.14%   74.14%           
=======================================
  Files          13       13           
  Lines        1257     1257           
=======================================
  Hits          932      932           
  Misses        251      251           
  Partials       74       74           

☔ View full report in Codecov by Sentry.
📢 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.

@adrianreber adrianreber merged commit 2519776 into checkpoint-restore:main Dec 10, 2025
10 checks passed
@adrianreber adrianreber deleted the 2025-12-10-codeql branch December 10, 2025 10:53
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