VLN-484: Set explicit permissions for GitHub Actions workflows #693
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/ci.yaml: Set workflow default tocontents: readat ci.yaml:29 and added job-levelcontents/actionsread permissions for reusable feature test calls at ci.yaml:190,203,215,227,239,251 to cover artifact downloads..github/workflows/docker-images.yaml: Added workflow-levelcontents: readto lock down the default token while preserving checkout access at docker-images.yaml:34..github/workflows/dotnet.yaml: Declared workflow-levelcontents: readandactions: readat dotnet.yaml:26 so artifact downloads and repo access work with least privilege..github/workflows/go.yaml: Declared workflow-levelcontents: readandactions: readat go.yaml:26 to cover checkout and optional artifact retrieval..github/workflows/java.yaml: Declared workflow-levelcontents: readandactions: readat java.yaml:27 for checkout plus artifact download support..github/workflows/php.yaml: Declared workflow-levelcontents: readandactions: readat php.yaml:26 to scope the token while allowing artifact access when needed..github/workflows/python.yaml: Declared workflow-levelcontents: readandactions: readat python.yaml:26 to cover checkout, protoc setup, and artifact download..github/workflows/typescript.yaml: Declared workflow-levelcontents: readandactions: readat typescript.yaml:26 for checkout plus optional artifact usage..github/workflows/all-docker-images.yaml: Added workflow-levelcontents: readat all-docker-images.yaml:70 so reusable image-build calls inherit explicit read-only defaults.