VLN-497: Set explicit permissions for GitHub Actions workflows #1815
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.yml: Defined workflow-level permissions limiting the GITHUB_TOKEN to contents read and actions write so CI jobs can check out code while still saving caches and uploading artifacts..github/workflows/conventions.yml: Added explicit permissions (contents read, actions read) for the reusable lint workflow which only checks out the repo and restores caches..github/workflows/docs.yml: Set workflow permissions to contents read and actions read, matching the documentation build job’s need to restore caches without granting write scopes..github/workflows/release.yml: Specified contents read and actions write permissions so release jobs can access the repo and perform cache and artifact upload operations without broader scope..github/workflows/stress.yml: Declared contents read and actions write permissions required for stress runs that restore/save caches and upload test artifacts..github/workflows/nightly-throughput-stress.yml: Introduced contents read and actions write permissions to support nightly throughput stress runs that rebuild artifacts, manage caches, and upload logs..github/workflows/nightly.yml: Added contents read and actions write permissions so the nightly wrapper workflow passes the required scopes to the reusable stress workflow it invokes..github/workflows/omes.yml: Set workflow permissions to contents read and packages write, allowing the OMES reusable workflow to access the repo and push container images while keeping other scopes disabled.