Skip to content

Commit 01f4671

Browse files
build: harden security of build
1 parent 1162f35 commit 01f4671

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/build.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,16 @@ on:
77

88
jobs:
99
build:
10+
permissions:
11+
contents: read
1012

1113
runs-on: ubuntu-latest
1214

1315
steps:
14-
1516
- name: Checkout repository
1617
uses: actions/checkout@v4
18+
with:
19+
persist-credentials: false
1720

1821
- name: Setup Go
1922
uses: actions/setup-go@v5

0 commit comments

Comments
 (0)