VLN-493: Set explicit permissions for GitHub Actions workflows #293
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
.github/workflows/lint.yml: Granted the workflow GITHUB_TOKEN read-only access to repository contents to support checkout while following least-privilege guidance..github/workflows/docker-build-only.yml: Replaced broad read-all token scope with explicit contents read and actions write permissions needed for checkout and artifact upload in the reusable build workflow..github/workflows/docker.yml: Augmented the existing permission set with actions write so the build job can upload artifacts while maintaining other required scopes..github/workflows/features-integration.yml: Scoped the workflow token to contents read and actions write so the reusable build job can upload artifacts without unnecessary additional privileges..github/workflows/release-admin-tools.yml: Limited the workflow token to repository contents read access since the release job only needs checkout capability..github/workflows/release-all-base-image.yml: Restricted the workflow token to contents read access, which is sufficient for building and pushing Docker images..github/workflows/release-base-image.yml: Set the workflow token to contents read to support repository checkout while avoiding broader defaults..github/workflows/release-temporal.yml: Configured the workflow token for contents read only, matching the checkout requirements of the release automation.