Skip to content

github: Specify permissions on the job level, not the workflow level#30

Merged
bkeryan merged 1 commit into
mainfrom
users/bkeryan/fix-workflow-permissions
May 22, 2025
Merged

github: Specify permissions on the job level, not the workflow level#30
bkeryan merged 1 commit into
mainfrom
users/bkeryan/fix-workflow-permissions

Conversation

@bkeryan

@bkeryan bkeryan commented May 22, 2025

Copy link
Copy Markdown
Collaborator

What does this Pull Request accomplish?

Specify permissions on the job level, not the workflow level. Specifying permissions on the workflow level grants the specified permissions to all jobs in the workflow, which gives some jobs permissions that they don't need.

CI.yml has multiple jobs, and only one needs additional privileges. I also updated workflows that have only one job.

Why should this Pull Request be merged?

Principle of least privilege

What testing has been done?

PR build

@github-actions

Copy link
Copy Markdown
Contributor

Test Results

 10 files  ±0   10 suites  ±0   7s ⏱️ ±0s
 24 tests ±0   24 ✅ ±0  0 💤 ±0  0 ❌ ±0 
210 runs  ±0  210 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit 4bf0ab4. ± Comparison against base commit a87939a.

@bkeryan bkeryan merged commit cc5b1a6 into main May 22, 2025
14 checks passed
@bkeryan bkeryan deleted the users/bkeryan/fix-workflow-permissions branch May 22, 2025 15:09
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.

4 participants