Skip to content

Commit 6f052b2

Browse files
authored
Merge pull request #77 from jsafrane/pin-github-actions-sha
fix: pin github action to exact SHA
2 parents 5d4af71 + 11c6a1e commit 6f052b2

File tree

6 files changed

+15
-15
lines changed

6 files changed

+15
-15
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,17 +38,17 @@ jobs:
3838

3939
steps:
4040
- name: Set up Go 1.x
41-
uses: actions/setup-go@v4
41+
uses: actions/setup-go@7b8cf10d4e4a01d4992d18a89f4d7dc5a3e6d6f4 # v4
4242
with:
4343
go-version: ^1.18
4444
id: go
4545

4646
- name: Checkout repository
47-
uses: actions/checkout@v3
47+
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
4848

4949
# Initializes the CodeQL tools for scanning.
5050
- name: Initialize CodeQL
51-
uses: github/codeql-action/init@v2
51+
uses: github/codeql-action/init@b8d3b6e8af63cde30bdc382c0bc28114f4346c88 # v2
5252
with:
5353
languages: ${{ matrix.language }}
5454
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -63,4 +63,4 @@ jobs:
6363
make all
6464
6565
- name: Perform CodeQL Analysis
66-
uses: github/codeql-action/analyze@v2
66+
uses: github/codeql-action/analyze@b8d3b6e8af63cde30bdc382c0bc28114f4346c88 # v2

.github/workflows/codespell.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ jobs:
88
name: Check for spelling errors
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v3
12-
- uses: codespell-project/actions-codespell@master
11+
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
12+
- uses: codespell-project/actions-codespell@8f01853be192eb0f849a5c7d721450e7a467c579 # v2.2
1313
with:
1414
check_filenames: true
1515
skip: ./.git,./.github/workflows/codespell.yml,.git,*.png,*.jpg,*.svg,*.sum,./vendor,go.sum

.github/workflows/darwin.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ jobs:
1111
steps:
1212

1313
- name: Set up Go 1.x
14-
uses: actions/setup-go@v4
14+
uses: actions/setup-go@7b8cf10d4e4a01d4992d18a89f4d7dc5a3e6d6f4 # v4
1515
with:
1616
go-version: ^1.19
1717
id: go
1818

1919
- name: Check out code into the Go module directory
20-
uses: actions/checkout@v3
20+
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
2121

2222
- name: Run unit tests on MacOS
2323
run: go test -v -race ./iscsi/...

.github/workflows/linux.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ jobs:
1010
steps:
1111

1212
- name: Set up Go 1.x
13-
uses: actions/setup-go@v4
13+
uses: actions/setup-go@7b8cf10d4e4a01d4992d18a89f4d7dc5a3e6d6f4 # v4
1414
with:
1515
go-version: ^1.19
1616
id: go
1717

1818
- name: Check out code into the Go module directory
19-
uses: actions/checkout@v3
19+
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
2020

2121
- name: Unit test
2222
run: |

.github/workflows/static.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ jobs:
88
runs-on: ubuntu-latest
99
steps:
1010
- name: Set up Go 1.x
11-
uses: actions/setup-go@v4
11+
uses: actions/setup-go@7b8cf10d4e4a01d4992d18a89f4d7dc5a3e6d6f4 # v4
1212
with:
1313
go-version: ^1.19
14-
- uses: actions/checkout@master
14+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
1515
- name: Run linter
16-
uses: golangci/golangci-lint-action@v3
16+
uses: golangci/golangci-lint-action@3a919529898de77ec3da873e3063ca4b10e7f5cc # v3
1717
with:
1818
version: v1.51
1919
args: -E=gofmt,deadcode,unused,varcheck,ineffassign,revive,misspell,exportloopref,asciicheck,bodyclose,contextcheck,depguard,dogsled,durationcheck,errname,forbidigo -D=staticcheck --timeout=30m0s

.github/workflows/windows.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ jobs:
1111
runs-on: ${{ matrix.platform }}
1212
steps:
1313
- name: Set up Go 1.x
14-
uses: actions/setup-go@v4
14+
uses: actions/setup-go@7b8cf10d4e4a01d4992d18a89f4d7dc5a3e6d6f4 # v4
1515
with:
1616
go-version: ^1.19
1717
id: go
1818
- name: Checkout code
19-
uses: actions/checkout@v3
19+
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
2020
- name: Build Test
2121
run: |
2222
go build -a -o example/iscsi-lib-example.exe ./example

0 commit comments

Comments
 (0)