Skip to content

Conversation

sozercan
Copy link
Collaborator

@sozercan sozercan commented Aug 7, 2025

What this PR does / why we need it:

Which issue(s) this PR fixes (optional, using fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when the PR gets merged):
Fixes #

Special notes for your reviewer:

Signed-off-by: Sertac Ozercan <sozercan@gmail.com>
@Copilot Copilot AI review requested due to automatic review settings August 7, 2025 05:15
Copy link

@Copilot 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 updates GitHub Actions workflow permissions by moving specific permissions from the workflow level to individual job levels, following security best practices by implementing the principle of least privilege.

  • Moves write permissions (contents, packages, id-token, pull-requests) from workflow level to job level
  • Sets workflow-level permissions to read-only (contents: read)
  • Applies consistent permission structure across all workflow files

Reviewed Changes

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

Show a summary per file
File Description
.github/workflows/update-models.yaml Moves write permissions to job level, sets workflow to read-only
.github/workflows/update-models-self.yaml Moves write permissions to job level, sets workflow to read-only
.github/workflows/release.yaml Moves write permissions to job level, sets workflow to read-only
.github/workflows/release-pr.yaml Moves write permissions to job level, sets workflow to read-only
.github/workflows/release-base.yaml Moves write permissions to job level, sets workflow to read-only
.github/workflows/pre-release.yaml Moves write permissions to job level, sets workflow to read-only
.github/workflows/patch-models.yaml Adds job-level permissions (already had read-only at workflow level)
.github/workflows/dependabot.yaml Moves write permissions to job level, sets workflow to read-only

Signed-off-by: Sertac Ozercan <sozercan@gmail.com>
Signed-off-by: Sertac Ozercan <sozercan@gmail.com>
@sozercan sozercan merged commit a9f3263 into main Aug 7, 2025
15 checks passed
@sozercan sozercan deleted the workflow-perms branch August 7, 2025 05:27
sozercan added a commit that referenced this pull request Aug 7, 2025
Signed-off-by: Sertac Ozercan <sozercan@gmail.com>
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