Skip to content

feat(ci): GitHub Actions least-privilege permissions audit (#121) - #249

Merged
dDevAhmed merged 9 commits into
DigiNodes:mainfrom
Grace-ope:feat/121-gha-least-privilege-audit
Oct 18, 2026
Merged

dDevAhmed merged 9 commits into
DigiNodes:mainfrom
Grace-ope:feat/121-gha-least-privilege-audit

Conversation

@Grace-ope

Copy link
Copy Markdown
Contributor

Summary

Closes #121 (SW-105).

Static conformance audit for explicit least-privilege permissions on workflows.

Acceptance criteria

  • PR/CI workflows rejected for write-all / contents: write / unexpected writes
  • Release elevated perms allowlisted by job id
  • Fixtures demonstrate prohibited broad permissions fail
  • Audit runs with existing contents: read — no permission expansion
  • npm test + npm run audit:workflow-permissions for repo workflows

Test plan

npm run audit:workflow-permissions
npm test -- tests/workflow-permissions.test.ts

@Grace-ope
Grace-ope requested a review from dDevAhmed as a code owner October 17, 2026 12:59
@coderabbitai

coderabbitai Bot commented Oct 17, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration
  • Configuration used: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: b4558bf3-1c63-4fe5-82e5-696566e68341
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

@dDevAhmed
dDevAhmed merged commit d18900e into DigiNodes:main Oct 18, 2026
1 check passed
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.

SW-105 — Add GitHub Actions least-privilege permission conformance audit

2 participants