Skip to content

Document least-privilege permissions in example workflow - #29

Merged
ocean90 merged 1 commit into
masterfrom
docs/least-privilege-permissions
Jul 20, 2026
Merged

Document least-privilege permissions in example workflow#29
ocean90 merged 1 commit into
masterfrom
docs/least-privilege-permissions

Conversation

@ocean90

@ocean90 ocean90 commented Jul 20, 2026

Copy link
Copy Markdown
Member

Adds permissions: {} to the example workflow in the README.

This action authenticates via SSH (SSH_PRIVATE_KEY / deploy key) and never uses GITHUB_TOKEN, so consuming workflows need no token permissions. Setting permissions: {} follows the least-privilege principle checked by OpenSSF Scorecards.

Note: {} applies to the whole job. Workflows that add other steps (e.g. actions/checkout) need to grant those steps their own scopes (e.g. contents: read); the example has no such step.

Addresses #23.

The action authenticates via SSH and never uses GITHUB_TOKEN, so consuming
workflows can drop all token permissions. Add `permissions: {}` to the
example to model least privilege (see #23, OpenSSF Scorecards).
@ocean90
ocean90 merged commit 13b076c into master Jul 20, 2026
2 checks 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.

1 participant