Skip to content

Commit 82af72c

Browse files
authored
ci: add least-privilege permissions to test and lint jobs (#7)
1 parent 74aed42 commit 82af72c

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ jobs:
1010
test:
1111
name: Test
1212
runs-on: ubuntu-latest
13+
permissions:
14+
contents: read
1315
strategy:
1416
matrix:
1517
go-version: ["1.26.1"]
@@ -57,6 +59,8 @@ jobs:
5759
lint:
5860
name: Lint
5961
runs-on: ubuntu-latest
62+
permissions:
63+
contents: read
6064
steps:
6165
- name: Checkout code
6266
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

0 commit comments

Comments
 (0)