Skip to content

CI: Restrict GitHub Actions workflow permissions to contents: read#126

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

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

Conversation

@taketo1113
Copy link
Owner

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 08b1be7 into master Mar 2, 2026
4 checks passed
@taketo1113 taketo1113 deleted the github-actions-permissions branch March 2, 2026 03:19
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