Skip to content

Commit 13c42d0

Browse files
authored
Chore: make sure github action follow best practises (#172)
1 parent 1492b99 commit 13c42d0

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/go.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33

44
name: Go
55

6+
permissions: {}
7+
68
on:
79
push:
810
branches: ["main"]
@@ -14,6 +16,8 @@ jobs:
1416
runs-on: ubuntu-latest
1517
steps:
1618
- uses: actions/checkout@v4
19+
with:
20+
persist-credentials: false
1721
- name: Set up Go
1822
uses: actions/setup-go@v5
1923
with:
@@ -28,11 +32,13 @@ jobs:
2832
runs-on: ubuntu-latest
2933
steps:
3034
- uses: actions/checkout@v4
35+
with:
36+
persist-credentials: false
3137
- uses: actions/setup-go@v5
3238
with:
3339
go-version-file: ./go.mod
3440
- name: golangci-lint
35-
uses: golangci/golangci-lint-action@v6
41+
uses: golangci/golangci-lint-action@55c2c1448f86e01eaae002a5a3a9624417608d84 #v6.5.2
3642
with:
3743
version: v1.62.0
3844
skip-cache: true
@@ -43,8 +49,10 @@ jobs:
4349
steps:
4450
- name: Checkout
4551
uses: actions/checkout@v4
52+
with:
53+
persist-credentials: false
4654
- name: Install buf
47-
uses: bufbuild/buf-setup-action@v1
55+
uses: bufbuild/buf-setup-action@a47c93e0b1648d5651a065437926377d060baa99 #v1
4856
- name: Generate protobuf
4957
run: buf generate
5058
- name: Check for git diff

0 commit comments

Comments
 (0)