Skip to content

CI: add least-privilege permissions to GitHub Actions workflows#609

Merged
dangusev merged 5 commits into
mainfrom
ci/workflow-least-privilege-permissions
Jul 8, 2026
Merged

CI: add least-privilege permissions to GitHub Actions workflows#609
dangusev merged 5 commits into
mainfrom
ci/workflow-least-privilege-permissions

Conversation

@peter-matkovski

@peter-matkovski peter-matkovski commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add explicit least-privilege permissions blocks to workflow files flagged by CodeQL.
  • Scopes derived from workflow operations (build, artifacts, Danger, release git push).
  • Resolves 5 open actions/missing-workflow-permissions alerts.

Linear

Test plan

  • CI green
  • Code scanning alerts close after merge

Add explicit workflow-level permissions blocks to resolve CodeQL
actions/missing-workflow-permissions alerts. Scopes are derived from
workflow operations (git push, artifact upload, Danger, release lanes).

Refs: APPSEC-164
Add explicit workflow-level permissions blocks to resolve CodeQL
actions/missing-workflow-permissions alerts. Scopes are derived from
workflow operations (git push, artifact upload, Danger, release lanes).

Refs: APPSEC-164
Add explicit workflow-level permissions blocks to resolve CodeQL
actions/missing-workflow-permissions alerts. Scopes are derived from
workflow operations (git push, artifact upload, Danger, release lanes).

Refs: APPSEC-164
Add explicit workflow-level permissions blocks to resolve CodeQL
actions/missing-workflow-permissions alerts. Scopes are derived from
workflow operations (git push, artifact upload, Danger, release lanes).

Refs: APPSEC-164
@coderabbitai

coderabbitai Bot commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: c965cbd4-3e1a-4d87-8700-b303608704f8

📥 Commits

Reviewing files that changed from the base of the PR and between 6844012 and 8a18466.

📒 Files selected for processing (3)
  • .github/workflows/ci.yml
  • .github/workflows/daily.yml
  • .github/workflows/run_tests.yml
🚧 Files skipped from review as they are similar to previous changes (1)
  • .github/workflows/run_tests.yml

📝 Walkthrough

Walkthrough

Four GitHub Actions workflow files were updated to add explicit permissions blocks. ci.yml, daily.yml, and python-versions.yml now set workflow-level permissions, and run_tests.yml now sets job-level permissions for the lint job. No other workflow logic changed.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

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

@coderabbitai coderabbitai Bot 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.

Actionable comments posted: 2


ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 2f084c62-1e28-4a5a-ab43-972a39b48ec0

📥 Commits

Reviewing files that changed from the base of the PR and between 9019f07 and 6844012.

📒 Files selected for processing (4)
  • .github/workflows/ci.yml
  • .github/workflows/daily.yml
  • .github/workflows/python-versions.yml
  • .github/workflows/run_tests.yml

Comment thread .github/workflows/daily.yml
Comment thread .github/workflows/run_tests.yml Outdated
Scope actions: write to the lint job that saves the mypy cache, and
grant actions: write on caller workflows so the reusable run_tests job
can write caches.

Co-authored-by: Cursor <cursoragent@cursor.com>
@peter-matkovski peter-matkovski self-assigned this Jul 8, 2026
@peter-matkovski
peter-matkovski requested review from aliev and dangusev July 8, 2026 14:32
@dangusev
dangusev merged commit 2e1445b into main Jul 8, 2026
14 checks passed
@dangusev
dangusev deleted the ci/workflow-least-privilege-permissions branch July 8, 2026 14:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants