Skip to content

Commit 9944dd9

Browse files
committed
Set minimal GitHub token permissions for CI workflow
This adds explicit permissions block with contents:read to follow the principle of least privilege. By default, GitHub Actions tokens have broad write access to the repository, which poses unnecessary security risks.
1 parent ee31649 commit 9944dd9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/main.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ name: CI
22

33
on: [push, pull_request]
44

5+
permissions:
6+
contents: read
7+
58
jobs:
69
semu-linux:
710
runs-on: ubuntu-24.04

0 commit comments

Comments
 (0)