Skip to content

Commit bbfcd28

Browse files
committed
README: Pin GitHub Actions with commit SHA using pinact
1 parent 2896758 commit bbfcd28

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

README.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
runs-on: ubuntu-latest
2828
steps:
2929
- name: Check out code into the Go module directory
30-
uses: actions/checkout@v4
30+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
3131
with:
3232
fetch-depth: 0
3333

@@ -49,7 +49,7 @@ jobs:
4949
# ${{ runner.os }}-golangcilint-
5050

5151
- name: golangci-lint
52-
uses: reviewdog/action-golangci-lint@v2
52+
uses: reviewdog/action-golangci-lint@64c149605d92715a545b1d80908eff8cecec21b1 # v2.7.1
5353
```
5454
5555
## Inputs
@@ -148,12 +148,12 @@ jobs:
148148
runs-on: ubuntu-latest
149149
steps:
150150
- name: Check out code into the Go module directory
151-
uses: actions/checkout@v4
151+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
152152
with:
153153
fetch-depth: 0
154154
155155
- name: golangci-lint
156-
uses: reviewdog/action-golangci-lint@v2
156+
uses: reviewdog/action-golangci-lint@64c149605d92715a545b1d80908eff8cecec21b1 # v2.7.1
157157
```
158158

159159
### Advanced Usage Example
@@ -172,11 +172,11 @@ jobs:
172172
runs-on: ubuntu-latest
173173
steps:
174174
- name: Check out code into the Go module directory
175-
uses: actions/checkout@v4
175+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
176176
with:
177177
fetch-depth: 0
178178
- name: golangci-lint
179-
uses: reviewdog/action-golangci-lint@v2
179+
uses: reviewdog/action-golangci-lint@64c149605d92715a545b1d80908eff8cecec21b1 # v2.7.1
180180
with:
181181
# optionally use a specific version of Go rather than the latest one
182182
go_version: "1.17"
@@ -192,11 +192,11 @@ jobs:
192192
runs-on: ubuntu-latest
193193
steps:
194194
- name: Check out code into the Go module directory
195-
uses: actions/checkout@v4
195+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
196196
with:
197197
fetch-depth: 0
198198
- name: golint
199-
uses: reviewdog/action-golangci-lint@v2
199+
uses: reviewdog/action-golangci-lint@64c149605d92715a545b1d80908eff8cecec21b1 # v2.7.1
200200
with:
201201
golangci_lint_flags: "--disable-all -E golint"
202202
tool_name: golint # Change reporter name.
@@ -208,11 +208,11 @@ jobs:
208208
runs-on: ubuntu-latest
209209
steps:
210210
- name: Check out code into the Go module directory
211-
uses: actions/checkout@v4
211+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
212212
with:
213213
fetch-depth: 0
214214
- name: errcheck
215-
uses: reviewdog/action-golangci-lint@v2
215+
uses: reviewdog/action-golangci-lint@64c149605d92715a545b1d80908eff8cecec21b1 # v2.7.1
216216
with:
217217
golangci_lint_flags: "--disable-all -E errcheck"
218218
tool_name: errcheck
@@ -224,12 +224,12 @@ jobs:
224224
runs-on: ubuntu-latest
225225
steps:
226226
- name: Check out code into the Go module directory
227-
uses: actions/checkout@v4
227+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
228228
with:
229229
fetch-depth: 0
230230
231231
- name: golangci-lint
232-
uses: reviewdog/action-golangci-lint@v2
232+
uses: reviewdog/action-golangci-lint@64c149605d92715a545b1d80908eff8cecec21b1 # v2.7.1
233233
with:
234234
cache: false
235235
```
@@ -247,11 +247,11 @@ jobs:
247247
runs-on: ubuntu-latest
248248
steps:
249249
- name: Check out code into the Go module directory
250-
uses: actions/checkout@v4
250+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
251251
with:
252252
fetch-depth: 0
253253
- name: golangci-lint
254-
uses: reviewdog/action-golangci-lint@v2
254+
uses: reviewdog/action-golangci-lint@64c149605d92715a545b1d80908eff8cecec21b1 # v2.7.1
255255
with:
256256
golangci_lint_flags: "--enable-all --exclude-use-default=false"
257257
```

0 commit comments

Comments
 (0)