Skip to content

Conversation

@jsquyres
Copy link
Member

Add explicit permissions into GitHub action workflows, as suggested by Copilot.

Ported to v5.0.x branch from main commit b15a17b.

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
Signed-off-by: Jeff Squyres [email protected]

(cherry picked from commit b15a17b)

Add explicit permissions into GitHub action workflows, as suggested by
Copilot.

Ported to v5.0.x branch from main commit
b15a17b.

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
Signed-off-by: Jeff Squyres <[email protected]>

(cherry picked from commit b15a17b)
@github-actions github-actions bot added this to the v5.0.10 milestone Dec 27, 2025
@jsquyres jsquyres requested review from Copilot and devreal and removed request for devreal December 27, 2025 18:17
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds explicit permissions to GitHub Actions workflows to address code scanning security alerts. The changes implement the principle of least privilege by restricting workflow permissions to read-only access to repository contents, following GitHub Actions security best practices.

Key Changes:

  • Added permissions: contents: read to six workflow files
  • Consistent placement of permissions block after the on: trigger definition
  • Cherry-picked from main branch commit b15a17b

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.

Show a summary per file
File Description
.github/workflows/ompi_nvidia.yaml Added read-only contents permission to NVIDIA CI workflow
.github/workflows/ompi_mpi4py_tests.yaml Added read-only contents permission to reusable mpi4py tests workflow
.github/workflows/ompi_mpi4py.yaml Added read-only contents permission to mpi4py build and test workflow
.github/workflows/macos-checks.yaml Added read-only contents permission to macOS build and test workflow
.github/workflows/compile-rocm.yaml Added read-only contents permission to ROCM compilation workflow
.github/workflows/compile-cuda.yaml Added read-only contents permission to CUDA compilation workflow

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant