You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ci: apply least-privilege permissions to all workflows (#578)
* ci: apply least-privilege permissions to all workflows
Move write permissions from workflow-level to job-level to satisfy
OpenSSF Scorecard Token-Permissions check. This follows the principle
of least privilege - workflows default to read-all, and only specific
jobs that need write access declare it.
Changed workflows:
- claude.yml: id-token: write moved to job level
- claude-code-review.yml: consistent read-all at workflow level
- codeql.yml: security-events: write moved to job level
- labeler.yml: pull-requests: write moved to job level
- pr-tests.yml: pull-requests: write, statuses: write moved to job level
- release.yml: contents: write already at job level, workflow to read-all
- stale.yml: issues: write, pull-requests: write moved to job level
- unity-tests.yml: checks: write moved to job level
Signed-off-by: Jason Xu <jasonxudeveloper@gmail.com>
Signed-off-by: JasonXuDeveloper - 傑 <jason@xgamedev.net>
* revert: keep claude-code-review.yml unchanged to pass workflow validation
Signed-off-by: JasonXuDeveloper - 傑 <jason@xgamedev.net>
* revert: restore pr-tests.yml and unity-tests.yml to master
GitHub Actions doesn't allow job-level permissions to exceed
workflow-level permissions. These workflows need write permissions
at workflow level because multiple jobs require them.
Signed-off-by: Jason Xu <jasonxudeveloper@gmail.com>
Signed-off-by: JasonXuDeveloper - 傑 <jason@xgamedev.net>
* fix(ci): ensure Unity Tests status is created for all scenarios
- Rename skip-tests job to 'Skip Unity Tests' for clarity
- Add commit status creation when tests are skipped
- Both run and skip scenarios now create 'Unity Tests' status
This ensures the required status check works regardless of whether
tests actually run or are skipped due to no relevant changes.
Signed-off-by: Jason Xu <jasonxudeveloper@gmail.com>
Signed-off-by: JasonXuDeveloper - 傑 <jason@xgamedev.net>
---------
Signed-off-by: Jason Xu <jasonxudeveloper@gmail.com>
Signed-off-by: JasonXuDeveloper - 傑 <jason@xgamedev.net>
0 commit comments