Skip to content

Commit 815d21f

Browse files
authored
fix: pin github actions sha (#623)
1 parent ca19f6f commit 815d21f

File tree

3 files changed

+10
-8
lines changed

3 files changed

+10
-8
lines changed

.github/workflows/lint.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ jobs:
1616
name: run golangci-golint on the project
1717
runs-on: ubuntu-latest
1818
steps:
19-
- uses: actions/checkout@v6
20-
- uses: actions/setup-go@v6
19+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
20+
- uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6
2121
with:
2222
go-version: 'stable'
2323
- name: golangci-golint
24-
uses: golangci/golangci-lint-action@v9
24+
uses: golangci/golangci-lint-action@1e7e51e771db61008b38414a730f564565cf7c20 # v9
2525
with:
2626
version: v2.9.0

.github/workflows/tests.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,14 @@ jobs:
2828

2929
steps:
3030
- name: Set up Go ${{ matrix.go }}
31-
uses: actions/setup-go@v6
31+
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6
3232
with:
3333
go-version: ${{ matrix.go }}
3434

3535
- run: go version
3636

3737
- name: Check out code into the Go module directory
38-
uses: actions/checkout@v6
38+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
3939

4040
- name: Edit the go.mod file to allow tests to run for versions of go before 1.16
4141
run: >
@@ -57,18 +57,18 @@ jobs:
5757
- "1.25"
5858
steps:
5959
- name: Set up Go ${{ matrix.go }}
60-
uses: actions/setup-go@v6
60+
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6
6161
with:
6262
go-version: ${{ matrix.go }}
6363

6464
- name: Check out code into the Go module directory
65-
uses: actions/checkout@v6
65+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
6666

6767
- name: go test
6868
run: go test -v -race -coverprofile=coverage.txt -covermode=atomic ./...
6969

7070
- name: Upload coverage to Codecov
71-
uses: codecov/codecov-action@v5
71+
uses: codecov/codecov-action@75cd11691c0faa626561e295848008c8a7dddffe # v5
7272
with:
7373
files: ./coverage.txt
7474
env_vars: GO

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
# Go Dep
22
vendor
3+
4+
.vscode/

0 commit comments

Comments
 (0)