Skip to content

ci: least-privilege permissions for the auto-merge workflow - #122

Merged
bgard68 merged 1 commit into
mainfrom
ci/tighten-auto-merge-permissions
Sep 14, 2026
Merged

bgard68 merged 1 commit into
mainfrom
ci/tighten-auto-merge-permissions

Conversation

@bgard68

@bgard68 bgard68 commented Sep 14, 2026

Copy link
Copy Markdown
Owner

Tightens the auto-merge workflow (#121) to the least-privilege shape.

  • Drops workflow-wide contents: write (enabling auto-merge doesn't need it — GitHub performs the merge later); workflow default is now contents: read.
  • Moves pull-requests: write onto the one job that needs it.
  • Adds timeout-minutes: 5.

This matches the shape DevSecOpsSentinel's own workflow scanner requires (GHA002 excessive permissions, GHA003 missing timeout), so all three repos' auto-merge workflows are now consistent.

🤖 Generated with Claude Code

Scopes pull-requests: write onto the one job that needs it and drops the
workflow-wide contents: write (enabling auto-merge doesn't need it — the
merge is performed later by GitHub), leaving the workflow default
read-only. Adds timeout-minutes. Matches the shape DevSecOpsSentinel's
own workflow scanner requires (GHA002/GHA003).

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@bgard68
bgard68 merged commit 3d8c1e5 into main Sep 14, 2026
9 checks passed
@bgard68
bgard68 deleted the ci/tighten-auto-merge-permissions branch September 14, 2026 12:36
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.

1 participant