Skip to content

Restrict GitHub Actions workflow permissions to contents: read for CI workflow#7

Merged
taketo1113 merged 1 commit intomasterfrom
github-actions-permissions
Mar 2, 2026
Merged

Restrict GitHub Actions workflow permissions to contents: read for CI workflow#7
taketo1113 merged 1 commit intomasterfrom
github-actions-permissions

Conversation

@taketo1113
Copy link
Member

Summary

This Pull Request restricts GitHub Actions workflow permissions to contents: read

Details

If permissions are not explicitly defined in a GitHub Actions workflow, the workflow inherits the default permissions configured at the GitHub Organization level. Depending on the organization settings, this may result in contents: write being granted.

Since the CI workflow only requires contents: read, this change explicitly sets the workflow permissions to contents: read to ensure the principle of least privilege and avoid unintentionally granting write access.

Related Links

@taketo1113 taketo1113 self-assigned this Mar 2, 2026
@taketo1113 taketo1113 merged commit 50846b7 into master Mar 2, 2026
1 check passed
@taketo1113 taketo1113 deleted the github-actions-permissions branch March 2, 2026 02:30
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