Skip to content

Commit 1e759a4

Browse files
committed
Merge branch 'main' into 'fix/vuln/pkg-specific-severity-selection'
2 parents e9ae12b + 2a140f1 commit 1e759a4

138 files changed

Lines changed: 3273 additions & 1188 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Setup Go
2+
description: >
3+
Set up Go with the major.minor version extracted from go.mod.
4+
This ensures check-latest works correctly even when go.mod contains a patch version.
5+
cf. https://github.com/actions/setup-go/issues/713
6+
7+
inputs:
8+
go-version-file:
9+
description: Path to the go.mod file
10+
required: false
11+
default: go.mod
12+
13+
runs:
14+
using: composite
15+
steps:
16+
- name: Extract Go version from go.mod
17+
id: go-version
18+
shell: bash
19+
run: |
20+
# Extract the major.minor version from the go directive in go.mod
21+
# e.g. 1.25.5 → 1.25
22+
go_version=$(grep -m1 '^go ' "${{ inputs.go-version-file }}" | awk '{print $2}')
23+
major_minor=$(echo "$go_version" | cut -d. -f1,2)
24+
echo "version=$major_minor" >> "$GITHUB_OUTPUT"
25+
26+
- name: Set up Go
27+
uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
28+
with:
29+
go-version: ${{ steps.go-version.outputs.version }}
30+
cache: false
31+
check-latest: true

.github/actions/trivy-triage/action.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ runs:
1010
- name: Conditionally label discussions based on category and content
1111
env:
1212
GH_TOKEN: ${{ github.token }}
13-
uses: actions/github-script@v6
13+
uses: actions/github-script@v8
1414
with:
1515
script: |
1616
const {detectDiscussionLabels, fetchDiscussion, labelDiscussion } = require('${{ github.action_path }}/helpers.js');

.github/dependabot.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
version: 2
22
updates:
33
- package-ecosystem: github-actions
4-
directory: /
4+
directories:
5+
- /
6+
- /.github/actions/*
57
schedule:
68
interval: monthly
79
groups:

.github/workflows/apidiff.yaml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,16 +57,12 @@ jobs:
5757
# This ensures we compare the actual merge result with the base branch,
5858
# avoiding false positives when PR is not rebased with latest main
5959
- name: Checkout
60-
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
60+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
6161
with:
6262
ref: refs/pull/${{ github.event.pull_request.number }}/merge
6363

6464
- name: Set up Go
65-
uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6.1.0
66-
with:
67-
go-version-file: go.mod
68-
check-latest: true # Ensure we use the latest Go patch version
69-
cache: false
65+
uses: ./.github/actions/setup-go
7066

7167
# Ensure the base commit exists locally for go-apidiff to compare against.
7268
# Even though we checkout the merge commit, go-apidiff needs the base ref to exist.

.github/workflows/auto-update-labels.yaml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,10 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- name: Checkout main
14-
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
14+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
1515

1616
- name: Set up Go
17-
uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6.1.0
18-
with:
19-
go-version-file: go.mod
20-
cache: false
21-
check-latest: true # Ensure we use the latest Go patch version
17+
uses: ./.github/actions/setup-go
2218

2319
- name: Install Go tools
2420
run: go install tool # GOBIN is added to the PATH by the setup-go action

.github/workflows/backport.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636

3737
steps:
3838
- name: Checkout repository
39-
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
39+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
4040
with:
4141
fetch-depth: 0
4242

.github/workflows/cache-test-assets.yaml

Lines changed: 9 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,10 @@ jobs:
1515
runs-on: ubuntu-latest
1616
steps:
1717
- name: Check out code into the Go module directory
18-
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
18+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
1919

2020
- name: Set up Go
21-
uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6.1.0
22-
with:
23-
go-version-file: go.mod
24-
cache: false
25-
check-latest: true # Ensure we use the latest Go patch version
21+
uses: ./.github/actions/setup-go
2622

2723
- name: Install Go tools
2824
run: go install tool # GOBIN is added to the PATH by the setup-go action
@@ -36,7 +32,7 @@ jobs:
3632
echo "digest=$DIGEST" >> $GITHUB_OUTPUT
3733
3834
- name: Restore and save test images cache
39-
uses: actions/cache@9255dc7a253b0ccc959486e2bca901246202afeb # v5.0.1
35+
uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
4036
with:
4137
path: integration/testdata/fixtures/images
4238
key: cache-test-images-${{ steps.image-digest.outputs.digest }}
@@ -49,14 +45,10 @@ jobs:
4945
runs-on: ubuntu-latest
5046
steps:
5147
- name: Check out code into the Go module directory
52-
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
48+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
5349

5450
- name: Set up Go
55-
uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6.1.0
56-
with:
57-
go-version-file: go.mod
58-
cache: false
59-
check-latest: true # Ensure we use the latest Go patch version
51+
uses: ./.github/actions/setup-go
6052

6153
- name: Install Go tools
6254
run: go install tool # GOBIN is added to the PATH by the setup-go action
@@ -70,7 +62,7 @@ jobs:
7062
echo "digest=$DIGEST" >> $GITHUB_OUTPUT
7163
7264
- name: Restore and save test VM images cache
73-
uses: actions/cache@9255dc7a253b0ccc959486e2bca901246202afeb # v5.0.1
65+
uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
7466
with:
7567
path: integration/testdata/fixtures/vm-images
7668
key: cache-test-vm-images-${{ steps.image-digest.outputs.digest }}
@@ -83,19 +75,15 @@ jobs:
8375
runs-on: ubuntu-latest
8476
steps:
8577
- name: Check out code
86-
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
78+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
8779

8880
- name: Set up Go
89-
uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6.1.0
90-
with:
91-
go-version-file: go.mod
92-
cache: false
93-
check-latest: true # Ensure we use the latest Go patch version
81+
uses: ./.github/actions/setup-go
9482

9583
- name: Run golangci-lint for caching
9684
uses: golangci/golangci-lint-action@1e7e51e771db61008b38414a730f564565cf7c20 # v9.2.0
9785
with:
98-
version: v2.4
86+
version: v2.10
9987
args: --verbose
10088
env:
10189
GOEXPERIMENT: jsonv2

.github/workflows/canary.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
runs-on: ubuntu-latest
2626
steps:
2727
- name: Restore Trivy binaries from cache
28-
uses: actions/cache@9255dc7a253b0ccc959486e2bca901246202afeb # v5.0.1
28+
uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
2929
with:
3030
path: dist/
3131
key: ${{ runner.os }}-bins-${{ github.workflow }}-${{ github.sha }}

.github/workflows/mkdocs-dev.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ jobs:
1212
runs-on: ubuntu-22.04
1313
steps:
1414
- name: Checkout main
15-
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
15+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
1616
with:
1717
fetch-depth: 0
1818
persist-credentials: true
19-
- uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0
19+
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
2020
with:
2121
python-version: 3.x
2222
- name: Install dependencies

.github/workflows/mkdocs-latest.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ jobs:
1414
runs-on: ubuntu-22.04
1515
steps:
1616
- name: Checkout main
17-
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
17+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
1818
with:
1919
fetch-depth: 0
2020
persist-credentials: true
21-
- uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0
21+
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
2222
with:
2323
python-version: 3.x
2424
- name: Install dependencies

0 commit comments

Comments
 (0)