Skip to content

Commit 722892c

Browse files
authored
Merge branch 'main' into probes/code-review
2 parents 5ffd59c + 1fad598 commit 722892c

File tree

164 files changed

+47789
-21354
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

164 files changed

+47789
-21354
lines changed

.github/workflows/depsreview.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ jobs:
2424
- name: 'Checkout Repository'
2525
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
2626
- name: 'Dependency Review'
27-
uses: actions/dependency-review-action@01bc87099ba56df1e897b6874784491ea6309bc4 # v3.1.4
27+
uses: actions/dependency-review-action@4901385134134e04cec5fbe5ddfe3b2c5bd5d976 # v4.0.0

.github/workflows/docker.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
fetch-depth: 2 # needed to diff changed files
4141
- id: files
4242
name: Get changed files
43-
uses: tj-actions/changed-files@94549999469dbfa032becf298d95c87a14c34394 #v40.2.2
43+
uses: tj-actions/changed-files@ae82ed4ae04587b665efad2f206578aa6f0e8539 #v42.0.0
4444
with:
4545
files_ignore: '**.md'
4646
- id: docs_only_check
@@ -78,7 +78,7 @@ jobs:
7878
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
7979
- name: Setup Go # needed for some of the Makefile evaluations, even if building happens in Docker
8080
if: (needs.docs_only_check.outputs.docs_only != 'true')
81-
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
81+
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
8282
with:
8383
go-version: ${{ env.GO_VERSION }}
8484
check-latest: true

.github/workflows/gitlab.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
with:
4242
ref: ${{ github.event.pull_request.head.sha || github.sha }} # head SHA if PR, else fallback to push SHA
4343
- name: Setup Go
44-
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
44+
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
4545
with:
4646
go-version: ${{ env.GO_VERSION }}
4747
check-latest: true
@@ -52,7 +52,7 @@ jobs:
5252
echo "go-mod=$(go env GOMODCACHE)" >> "$GITHUB_OUTPUT"
5353
- name: Cache builds
5454
# https://github.com/mvdan/github-actions-golang#how-do-i-set-up-caching-between-builds
55-
uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 #v3.3.2
55+
uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2 #v4.0.0
5656
with:
5757
path: |
5858
${{ steps.go-cache-paths.outputs.go-build }}

.github/workflows/goreleaser.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
with:
4444
fetch-depth: 0
4545
- name: Set up Go
46-
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v2.2.0
46+
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v2.2.0
4747
with:
4848
go-version: ${{ env.GO_VERSION }}
4949
check-latest: true

.github/workflows/integration.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
with:
5353
ref: ${{ github.event.pull_request.head.sha }}
5454
- name: Setup Go
55-
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
55+
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
5656
with:
5757
go-version: ${{ env.GO_VERSION }}
5858
check-latest: true
@@ -63,7 +63,7 @@ jobs:
6363
echo "go-mod=$(go env GOMODCACHE)" >> "$GITHUB_OUTPUT"
6464
- name: Cache builds
6565
# https://github.com/mvdan/github-actions-golang#how-do-i-set-up-caching-between-builds
66-
uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 #v3.3.2
66+
uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2 #v4.0.0
6767
with:
6868
path: |
6969
${{ steps.go-cache-paths.outputs.go-build }}

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
with:
2424
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs
2525
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
26-
- uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
26+
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
2727
with:
2828
go-version: ${{ env.GO_VERSION }}
2929
cache: false # golangci-lint maintains its own cache

.github/workflows/main.yml

Lines changed: 14 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
- name: Clone the code
4444
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
4545
- name: Setup Go
46-
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
46+
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
4747
with:
4848
go-version: ${{ env.GO_VERSION }}
4949
check-latest: true
@@ -54,7 +54,7 @@ jobs:
5454
echo "go-mod=$(go env GOMODCACHE)" >> "$GITHUB_OUTPUT"
5555
- name: Cache builds
5656
# https://github.com/mvdan/github-actions-golang#how-do-i-set-up-caching-between-builds
57-
uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 #v3.3.2
57+
uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2 #v4.0.0
5858
with:
5959
path: |
6060
${{ steps.go-cache-paths.outputs.go-build }}
@@ -106,7 +106,7 @@ jobs:
106106
repo-token: ${{ secrets.GITHUB_TOKEN }}
107107
- name: Cache builds
108108
# https://github.com/mvdan/github-actions-golang#how-do-i-set-up-caching-between-builds
109-
uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 # v3.3.2
109+
uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # v4.0.0
110110
with:
111111
path: |
112112
~/go/pkg/mod
@@ -121,7 +121,7 @@ jobs:
121121
with:
122122
fetch-depth: 0
123123
- name: Setup Go
124-
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v2.2.0
124+
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v2.2.0
125125
with:
126126
go-version: ${{ env.GO_VERSION }}
127127
check-latest: true
@@ -149,7 +149,7 @@ jobs:
149149
- name: Clone the code
150150
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
151151
- name: Setup Go
152-
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
152+
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
153153
with:
154154
go-version: ${{ env.GO_VERSION }}
155155
check-latest: true
@@ -186,7 +186,7 @@ jobs:
186186
with:
187187
fetch-depth: 0
188188
- name: Setup Go
189-
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v2.2.0
189+
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v2.2.0
190190
with:
191191
go-version: ${{ env.GO_VERSION }}
192192
check-latest: true
@@ -226,7 +226,7 @@ jobs:
226226
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs
227227
- name: Cache builds
228228
# https://github.com/mvdan/github-actions-golang#how-do-i-set-up-caching-between-builds
229-
uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 # v3.3.2
229+
uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # v4.0.0
230230
with:
231231
path: |
232232
~/go/pkg/mod
@@ -239,7 +239,7 @@ jobs:
239239
- name: Clone the code
240240
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
241241
- name: Setup Go
242-
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
242+
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
243243
with:
244244
go-version: ${{ env.GO_VERSION }}
245245
check-latest: true
@@ -266,7 +266,7 @@ jobs:
266266

267267
- name: Cache builds
268268
# https://github.com/mvdan/github-actions-golang#how-do-i-set-up-caching-between-builds
269-
uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 # v3.3.2
269+
uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # v4.0.0
270270
with:
271271
path: |
272272
~/go/pkg/mod
@@ -281,7 +281,7 @@ jobs:
281281
with:
282282
fetch-depth: 0
283283
- name: Setup Go
284-
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v2.2.0
284+
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v2.2.0
285285
with:
286286
go-version: ${{ env.GO_VERSION }}
287287
check-latest: true
@@ -298,37 +298,17 @@ jobs:
298298
add-projects:
299299
name: add-projects
300300
runs-on: ubuntu-latest
301-
needs: build-proto
302301
permissions:
303302
contents: read
304303
steps:
305304
- name: Harden Runner
306305
uses: step-security/harden-runner@eb238b55efaa70779f274895e782ed17c84f2895 # v1
307306
with:
308307
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs
309-
- name: Install Protoc
310-
uses: arduino/setup-protoc@149f6c87b92550901b26acd1632e11c3662e381f # v1.3.0
311-
with:
312-
version: ${{ env.PROTOC_VERSION }}
313-
repo-token: ${{ secrets.GITHUB_TOKEN }}
314-
- name: Cache builds
315-
# https://github.com/mvdan/github-actions-golang#how-do-i-set-up-caching-between-builds
316-
uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 # v3.3.2
317-
with:
318-
path: |
319-
~/go/pkg/mod
320-
~/.cache/go-build
321-
~/Library/Caches/go-build
322-
%LocalAppData%\go-build
323-
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
324-
restore-keys: |
325-
${{ runner.os }}-go-
326308
- name: Clone the code
327309
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
328-
with:
329-
fetch-depth: 0
330310
- name: Setup Go
331-
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v2.2.0
311+
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
332312
with:
333313
go-version: ${{ env.GO_VERSION }}
334314
check-latest: true
@@ -342,6 +322,7 @@ jobs:
342322
command: |
343323
go env -w GOFLAGS=-mod=mod
344324
make add-projects
325+
git diff --exit-code
345326
validate-projects:
346327
name: validate-projects
347328
runs-on: ubuntu-latest
@@ -363,7 +344,7 @@ jobs:
363344
with:
364345
fetch-depth: 0
365346
- name: Setup Go
366-
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v2.2.0
347+
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v2.2.0
367348
with:
368349
go-version: ${{ env.GO_VERSION }}
369350
check-latest: true
@@ -389,7 +370,7 @@ jobs:
389370
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs
390371

391372
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
392-
- uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v2.2.0
373+
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v2.2.0
393374
with:
394375
go-version: ${{ env.GO_VERSION }}
395376
check-latest: true

.github/workflows/publishimage.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
with:
4545
fetch-depth: 0
4646
- name: Setup Go
47-
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe
47+
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491
4848
with:
4949
go-version: ${{ env.GO_VERSION }}
5050
check-latest: true
@@ -61,7 +61,7 @@ jobs:
6161
make install
6262
make scorecard-ko
6363
- name: Install Cosign
64-
uses: sigstore/cosign-installer@1fc5bd396d372bee37d608f955b336615edf79c8
64+
uses: sigstore/cosign-installer@9614fae9e5c5eddabb09f90a270fcb487c9f7149
6565
- name: Sign image
6666
run: |
6767
cosign sign --yes ghcr.io/${{github.repository_owner}}/scorecard/v4:${{ github.sha }}

.github/workflows/scdiff.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ jobs:
8282
with:
8383
ref: ${{ steps.config.outputs.base }}
8484
- name: Setup Go
85-
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
85+
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
8686
with:
8787
go-version: ${{ env.GO_VERSION }}
8888
check-latest: true

.github/workflows/scorecard-analysis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
# https://docs.github.com/en/actions/advanced-guides/storing-workflow-data-as-artifacts
4141
# Optional.
4242
- name: "Upload artifact"
43-
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3
43+
uses: actions/upload-artifact@694cdabd8bdb0f10b2cea11669e1bf5453eed0a6 # v3
4444
with:
4545
name: SARIF file
4646
path: results.sarif

0 commit comments

Comments
 (0)