We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent faa1528 commit 247c815Copy full SHA for 247c815
.github/workflows/test.yml
@@ -2,6 +2,8 @@ on:
2
push:
3
branches: [main]
4
pull_request:
5
+permissions:
6
+ contents: read
7
name: Test
8
jobs:
9
test:
@@ -12,7 +14,7 @@ jobs:
12
14
runs-on: ${{ matrix.platform }}
13
15
steps:
16
- name: Install Go
- uses: actions/setup-go@v4
17
+ uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0
18
with:
19
go-version: ${{ matrix.go-version }}
20
- name: Install staticcheck
@@ -25,7 +27,7 @@ jobs:
25
27
run: echo "$(go env GOPATH)/bin" >> $GITHUB_PATH
26
28
shell: bash
29
- name: Checkout code
- uses: actions/checkout@v3
30
+ uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
31
- name: Fmt
32
if: matrix.platform != 'windows-latest' # :(
33
run: "diff <(gofmt -d .) <(printf '')"
0 commit comments