Skip to content

Commit 4d7b3dc

Browse files
Copilothuangyiirene
andcommitted
security: add explicit permissions to CI workflow
Set minimal permissions (contents: read) to limit GITHUB_TOKEN scope Co-authored-by: huangyiirene <7665279+huangyiirene@users.noreply.github.com>
1 parent e2f32e4 commit 4d7b3dc

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ on:
1111
jobs:
1212
build:
1313
runs-on: ubuntu-latest
14+
permissions:
15+
contents: read
1416

1517
steps:
1618
- name: Checkout repository

0 commit comments

Comments
 (0)