@@ -12,34 +12,34 @@ jobs:
1212 name : Check Dockerfiles
1313 runs-on : ubuntu-latest
1414 steps :
15- - uses : actions/checkout@v7
16- - uses : hadolint/hadolint-action@v3.1.0
15+ - uses : actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
16+ - uses : hadolint/hadolint-action@54c9adbab1582c2ef04b2016b760714a4bfde3cf # v3.1.0
1717 with :
1818 dockerfile : Dockerfile
1919 go-linters :
2020 name : Go linters
2121 runs-on : ubuntu-24.04
2222 steps :
2323 - name : Set up Go 1.x
24- uses : actions/setup-go@v7
24+ uses : actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7
2525 with :
2626 go-version : " 1.25.0"
2727 - name : Check out code into the Go module directory
28- uses : actions/checkout@v7
28+ uses : actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
2929 with :
3030 fetch-depth : 0
3131 - name : Run Gosec Security Scanner
32- uses : securego/gosec@master
32+ uses : securego/gosec@9e75c0576c9878035d4221392108d458abe10fc3 # v2.28.0
3333 with :
3434 args : -exclude-generated ./...
3535 env :
3636 GOROOT : " "
3737 - name : golangci-lint
38- uses : golangci/golangci-lint-action@v9
38+ uses : golangci/golangci-lint-action@ba0d7d2ec06a0ea1cb5fa41b2e4a3ab91d21278a # v9
3939 with :
4040 args : --timeout=10m
4141 only-new-issues : true
42- - uses : dominikh/staticcheck-action@v1.4.0
42+ - uses : dominikh/staticcheck-action@024238d2898c874f26d723e7d0ff4308c35589a2 # v1.4.0
4343 with :
4444 version : " latest"
4545 install-go : false
@@ -51,15 +51,15 @@ jobs:
5151 OPERATOR_SDK_VERSION : v1.39.1
5252 steps :
5353 - name : Set up Go 1.x
54- uses : actions/setup-go@v7
54+ uses : actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7
5555 with :
5656 go-version : " 1.25.0"
5757 - name : Check out code into the Go module directory
58- uses : actions/checkout@v7
58+ uses : actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
5959 with :
6060 fetch-depth : 0
6161 - name : Cache Operator SDK ${{ env.OPERATOR_SDK_VERSION }}
62- uses : actions/cache@v6
62+ uses : actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6
6363 id : cache-operator-sdk
6464 with :
6565 path : ~/cache
8181 make kustomize controller-gen
8282 - name : Cache go modules
8383 id : cache-mod
84- uses : actions/cache@v6
84+ uses : actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6
8585 with :
8686 path : ~/go/pkg/mod
8787 key : ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
@@ -131,7 +131,7 @@ jobs:
131131 run : |
132132 make test
133133 - name : Upload coverage to Codecov
134- uses : codecov/codecov-action@v7
134+ uses : codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7
135135 with :
136136 token : ${{ secrets.CODECOV_TOKEN }}
137137 flags : unit-tests
@@ -140,7 +140,7 @@ jobs:
140140 runs-on : ubuntu-24.04
141141 steps :
142142 - name : Check out code
143- uses : actions/checkout@v7
143+ uses : actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
144144 with :
145145 fetch-depth : 0
146146 ref : ${{ github.event.pull_request.head.sha }}
@@ -151,7 +151,7 @@ jobs:
151151 kube-linter :
152152 runs-on : ubuntu-latest
153153 steps :
154- - uses : actions/checkout@v7
154+ - uses : actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
155155 # This prepares directory where github/codeql-action/upload-sarif@v1 looks up report files by default.
156156 - name : Create ./.kube-linter/ for deployment files
157157 shell : bash
@@ -160,7 +160,7 @@ jobs:
160160 shell : bash
161161 run : kustomize build config/default/ > ./.kube-linter/deploy-default.yaml
162162 - name : Scan yaml files with kube-linter
163- uses : stackrox/kube-linter-action@v1
163+ uses : stackrox/kube-linter-action@87802a2f4e01abebb3ee3c67a3002fea71f6eae5 # v1
164164 id : kube-linter-action-scan
165165 with :
166166 # Adjust this directory to the location where your kubernetes resources and helm charts are located.
0 commit comments