Skip to content

Commit 247c815

Browse files
committed
github: Update GitHub actions
1 parent faa1528 commit 247c815

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/test.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ on:
22
push:
33
branches: [main]
44
pull_request:
5+
permissions:
6+
contents: read
57
name: Test
68
jobs:
79
test:
@@ -12,7 +14,7 @@ jobs:
1214
runs-on: ${{ matrix.platform }}
1315
steps:
1416
- name: Install Go
15-
uses: actions/setup-go@v4
17+
uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0
1618
with:
1719
go-version: ${{ matrix.go-version }}
1820
- name: Install staticcheck
@@ -25,7 +27,7 @@ jobs:
2527
run: echo "$(go env GOPATH)/bin" >> $GITHUB_PATH
2628
shell: bash
2729
- name: Checkout code
28-
uses: actions/checkout@v3
30+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2931
- name: Fmt
3032
if: matrix.platform != 'windows-latest' # :(
3133
run: "diff <(gofmt -d .) <(printf '')"

0 commit comments

Comments
 (0)