Skip to content

Commit 9c20161

Browse files
committed
ci: add minimal permissions
1 parent 9462a62 commit 9c20161

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ jobs:
1010
lint:
1111
name: Lint
1212
runs-on: ubuntu-latest
13+
permissions:
14+
contents: read
1315
steps:
1416
- name: Checkout code
1517
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
@@ -27,6 +29,8 @@ jobs:
2729
matrix:
2830
os: [ubuntu-latest, macos-latest, windows-latest]
2931
runs-on: ${{ matrix.os }}
32+
permissions:
33+
contents: read
3034
steps:
3135
- name: Checkout code
3236
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

0 commit comments

Comments
 (0)