Fix CI workflow permission error for style checks #16567

Closed
opened 2026-02-21 19:26:42 -05:00 by yindo · 0 comments
Owner

Originally created by @laipz8200 on GitHub (Aug 29, 2025).

Originally assigned to: @laipz8200 on GitHub.

Summary

The main CI pipeline workflow is failing due to insufficient permissions when calling the reusable style.yml workflow.

Error

The workflow encounters this error:

The workflow is requesting 'statuses: write', but is only allowed 'statuses: none'.

Root Cause

The style.yml workflow requires statuses: write permission to update commit statuses, but the parent main-ci.yml workflow doesn't grant this permission when calling the reusable workflow.

Solution

Add the missing statuses: write permission to the main-ci.yml workflow's permissions section.

Originally created by @laipz8200 on GitHub (Aug 29, 2025). Originally assigned to: @laipz8200 on GitHub. ## Summary The main CI pipeline workflow is failing due to insufficient permissions when calling the reusable style.yml workflow. ## Error The workflow encounters this error: ``` The workflow is requesting 'statuses: write', but is only allowed 'statuses: none'. ``` ## Root Cause The `style.yml` workflow requires `statuses: write` permission to update commit statuses, but the parent `main-ci.yml` workflow doesn't grant this permission when calling the reusable workflow. ## Solution Add the missing `statuses: write` permission to the main-ci.yml workflow's permissions section.
yindo closed this issue 2026-02-21 19:26:42 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#16567