Skip to content

fix: reduce permissions for preview docs CI#3480

Merged
winglian merged 1 commit intomainfrom
fix/preview-docs-permissions
Mar 9, 2026
Merged

fix: reduce permissions for preview docs CI#3480
winglian merged 1 commit intomainfrom
fix/preview-docs-permissions

Conversation

@NanoCode012
Copy link
Collaborator

@NanoCode012 NanoCode012 commented Mar 9, 2026

Description

So many permissions that may not be needed, wait CI to check if nothing broke

Motivation and Context

How has this been tested?

AI Usage Disclaimer

Screenshots (if appropriate)

Types of changes

Social Handles (Optional)

Summary by CodeRabbit

  • Chores
    • Updated GitHub Actions workflow configuration to refine operational permissions.

Note: This release contains no user-facing changes.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Mar 9, 2026

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: 84affbd4-02df-4a9e-9e85-ef95366013bc

📥 Commits

Reviewing files that changed from the base of the PR and between 43b1c80 and a957269.

📒 Files selected for processing (1)
  • .github/workflows/preview-docs.yml

📝 Walkthrough

Walkthrough

A GitHub Actions workflow permission configuration was tightened by removing write permissions for checks, deployments, issues, discussions, pages, and statuses, replacing them with a single read permission for contents while maintaining pull-requests write access.

Changes

Cohort / File(s) Summary
GitHub Actions Workflow Permissions
.github/workflows/preview-docs.yml
Reduced permission scope by removing multiple write permissions (checks, deployments, issues, discussions, pages, statuses) and consolidating to a single contents: read permission. Pull-requests write permission retained.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Suggested reviewers

  • djsaunde
🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately summarizes the main change: reducing permissions in the preview docs CI workflow, which aligns with the file-level summary.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

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

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch fix/preview-docs-permissions

Tip

Try Coding Plans. Let us write the prompt for your AI agent so you can ship faster (with fewer bugs).
Share your feedback on Discord.


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 and usage tips.

@github-actions
Copy link
Contributor

github-actions bot commented Mar 9, 2026

📖 Documentation Preview: https://69ae667b3066762293128631--resonant-treacle-0fd729.netlify.app

Deployed on Netlify from commit a957269

@codecov
Copy link

codecov bot commented Mar 9, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Copy link
Collaborator

@winglian winglian left a comment

Choose a reason for hiding this comment

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

good catch1

@winglian winglian merged commit cf4d550 into main Mar 9, 2026
19 checks passed
@winglian winglian deleted the fix/preview-docs-permissions branch March 9, 2026 12:04
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