Skip to content

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

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

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

Conversation

@taketo1113
Copy link
Copy Markdown
Collaborator

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 merged commit 75f19b0 into main Mar 2, 2026
67 checks passed
@taketo1113 taketo1113 deleted the github-actions-permissions branch March 2, 2026 03:08
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