Skip to content

Commit 16fe0d8

Browse files
authored
Merge branch 'main' into extend-api
2 parents d55f22c + 8018a2f commit 16fe0d8

File tree

163 files changed

+4824
-1228
lines changed

Some content is hidden

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

163 files changed

+4824
-1228
lines changed

.github/renovate.json5

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
automerge: true,
1010
baseBranches: [
1111
'main',
12-
'/^release-.*/',
12+
'release-0.31',
13+
'release-0.32',
1314
],
1415
platformAutomerge: true,
1516
labels: [

.github/workflows/atlantis-image.yml

Lines changed: 53 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ jobs:
2929
if: github.event.pull_request.draft == false
3030
runs-on: ubuntu-24.04
3131
steps:
32+
- name: Harden Runner
33+
uses: step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4
34+
with:
35+
egress-policy: audit
36+
3237
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
3338
- uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3
3439
id: changes
@@ -61,6 +66,11 @@ jobs:
6166
PUSH: ${{ github.event_name != 'pull_request' && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/')) }}
6267

6368
steps:
69+
- name: Harden Runner
70+
uses: step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4
71+
with:
72+
egress-policy: audit
73+
6474
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
6575

6676
# Lint the Dockerfile first before setting anything up
@@ -69,8 +79,13 @@ jobs:
6979
with:
7080
dockerfile: "Dockerfile"
7181

82+
- name: Set up Go
83+
uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0
84+
with:
85+
go-version-file: "go.mod"
86+
7287
- name: Set up QEMU
73-
uses: docker/setup-qemu-action@49b3bc8e6bdd4a60e6116a5414239cba5943d3cf # v3
88+
uses: docker/setup-qemu-action@53851d14592bedcffcf25ea515637cff71ef929a # v3
7489
with:
7590
image: tonistiigi/binfmt:latest
7691
platforms: arm64,arm
@@ -82,6 +97,10 @@ jobs:
8297
driver-opts: |
8398
image=moby/buildkit:v0.14.0
8499
100+
- name: "Install cosign"
101+
uses: sigstore/cosign-installer@dc72c7d5c4d10cd6bcb8cf6e3fd625a9e5e537da # v3.7.0
102+
if: env.PUSH == 'true' && github.event_name != 'pull_request'
103+
85104
# release version is the name of the tag i.e. v0.10.0
86105
# release version also has the image type appended i.e. v0.10.0-alpine
87106
# release tag is either pre-release or latest i.e. latest
@@ -136,7 +155,7 @@ jobs:
136155
- name: "Build ${{ env.PUSH == 'true' && 'and push' || '' }} ${{ env.DOCKER_REPO }} image"
137156
id: build
138157
if: contains(fromJson('["push", "pull_request"]'), github.event_name)
139-
uses: docker/build-push-action@48aba3b46d1b1fec4febb7c5d0c644b249a11355 # v6
158+
uses: docker/build-push-action@ca877d9245402d1537745e0e356eab47c3520991 # v6
140159
with:
141160
cache-from: type=gha
142161
cache-to: type=gha,mode=max
@@ -146,21 +165,36 @@ jobs:
146165
ATLANTIS_VERSION=${{ env.RELEASE_VERSION }}
147166
ATLANTIS_COMMIT=${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.revision'] }}
148167
ATLANTIS_DATE=${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.created'] }}
149-
platforms: linux/arm64/v8,linux/amd64,linux/arm/v7
168+
platforms: linux/arm64/v8, linux/amd64, linux/arm/v7
150169
push: ${{ env.PUSH }}
151170
tags: ${{ steps.meta.outputs.tags }}
152171
target: ${{ matrix.image_type }}
153172
labels: ${{ steps.meta.outputs.labels }}
154173
outputs: type=image,name=target,annotation-index.org.opencontainers.image.description=${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.description'] }}
155174

156-
- name: "Sign and Attest Image"
157-
if: env.PUSH == 'true'
175+
- name: "Create Image Attestation"
176+
if: env.PUSH == 'true' && github.event_name != 'pull_request'
158177
uses: actions/attest-build-provenance@7668571508540a607bdfd90a87a560489fe372eb # v2.1.0
159178
with:
160179
subject-digest: ${{ steps.build.outputs.digest }}
161180
subject-name: ghcr.io/${{ github.repository }}
162181
push-to-registry: true
163182

183+
- name: "Sign images with environment annotations"
184+
# no key needed, we're using the GitHub OIDC flow
185+
if: env.PUSH == 'true' && github.event_name != 'pull_request'
186+
run: |
187+
# Sign dev tags, version tags, and latest tags
188+
echo "${TAGS}" | xargs -I {} cosign sign \
189+
--yes \
190+
-a actor=${{ github.actor}} \
191+
-a ref_name=${{ github.ref_name}} \
192+
-a ref=${{ github.sha }} \
193+
{}@${DIGEST}
194+
env:
195+
TAGS: ${{ steps.meta.outputs.tags }}
196+
DIGEST: ${{ steps.build.outputs.digest }}
197+
164198
test:
165199
needs: [changes]
166200
if: needs.changes.outputs.should-run-build == 'true'
@@ -169,13 +203,18 @@ jobs:
169203
strategy:
170204
matrix:
171205
image_type: [alpine, debian]
206+
platform: [linux/arm64/v8, linux/amd64, linux/arm/v7]
172207
env:
173208
# Set docker repo to either the fork or the main repo where the branch exists
174209
DOCKER_REPO: ghcr.io/${{ github.repository }}
175210

176211
steps:
177-
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
212+
- name: Harden Runner
213+
uses: step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4
214+
with:
215+
egress-policy: audit
178216

217+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
179218
- name: Set up Docker Buildx
180219
uses: docker/setup-buildx-action@6524bf65af31da8d45b59e8c27de4bd072b392f5 # v3
181220
# https://github.com/docker/build-push-action/issues/761#issuecomment-1575006515
@@ -185,7 +224,7 @@ jobs:
185224
186225
- name: "Build and load into Docker"
187226
if: contains(fromJson('["push", "pull_request"]'), github.event_name)
188-
uses: docker/build-push-action@48aba3b46d1b1fec4febb7c5d0c644b249a11355 # v6
227+
uses: docker/build-push-action@ca877d9245402d1537745e0e356eab47c3520991 # v6
189228
with:
190229
cache-from: type=gha
191230
cache-to: type=gha,mode=max
@@ -215,4 +254,10 @@ jobs:
215254
image_type: [alpine, debian]
216255
runs-on: ubuntu-24.04
217256
steps:
218-
- run: 'echo "No build required"'
257+
- name: Harden Runner
258+
uses: step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4
259+
with:
260+
egress-policy: audit
261+
262+
- run: 'echo "No build required"'
263+

.github/workflows/codeql.yml

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,11 @@ jobs:
4343
if: github.event.pull_request.draft == false
4444
runs-on: ubuntu-24.04
4545
steps:
46+
- name: Harden Runner
47+
uses: step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4
48+
with:
49+
egress-policy: audit
50+
4651
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
4752
- uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3
4853
id: changes
@@ -72,12 +77,17 @@ jobs:
7277
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
7378

7479
steps:
80+
- name: Harden Runner
81+
uses: step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4
82+
with:
83+
egress-policy: audit
84+
7585
- name: Checkout repository
7686
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
7787

7888
# Initializes the CodeQL tools for scanning.
7989
- name: Initialize CodeQL
80-
uses: github/codeql-action/init@48ab28a6f5dbc2a99bf1e0131198dd8f1df78169 # v3
90+
uses: github/codeql-action/init@dd746615b3b9d728a6a37ca2045b68ca76d4841a # v3
8191
with:
8292
languages: ${{ matrix.language }}
8393
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -91,7 +101,7 @@ jobs:
91101
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, or Java).
92102
# If this step fails, then you should remove it and run the build manually (see below)
93103
- name: Autobuild
94-
uses: github/codeql-action/autobuild@48ab28a6f5dbc2a99bf1e0131198dd8f1df78169 # v3
104+
uses: github/codeql-action/autobuild@dd746615b3b9d728a6a37ca2045b68ca76d4841a # v3
95105

96106
# ℹ️ Command-line programs to run using the OS shell.
97107
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
@@ -104,7 +114,7 @@ jobs:
104114
# ./location_of_script_within_repo/buildscript.sh
105115

106116
- name: Perform CodeQL Analysis
107-
uses: github/codeql-action/analyze@48ab28a6f5dbc2a99bf1e0131198dd8f1df78169 # v3
117+
uses: github/codeql-action/analyze@dd746615b3b9d728a6a37ca2045b68ca76d4841a # v3
108118
with:
109119
category: "/language:${{matrix.language}}"
110120

@@ -117,4 +127,9 @@ jobs:
117127
language: [ 'go', 'javascript' ]
118128
runs-on: ubuntu-24.04
119129
steps:
130+
- name: Harden Runner
131+
uses: step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4
132+
with:
133+
egress-policy: audit
134+
120135
- run: 'echo "No build required"'
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Dependency Review Action
2+
#
3+
# This Action will scan dependency manifest files that change as part of a Pull Request,
4+
# surfacing known-vulnerable versions of the packages declared or updated in the PR.
5+
# Once installed, if the workflow run is marked as required,
6+
# PRs introducing known-vulnerable packages will be blocked from merging.
7+
#
8+
# Source repository: https://github.com/actions/dependency-review-action
9+
name: 'Dependency Review'
10+
on: [pull_request]
11+
12+
permissions:
13+
contents: read
14+
15+
jobs:
16+
dependency-review:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: Harden Runner
20+
uses: step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4
21+
with:
22+
egress-policy: audit
23+
24+
- name: 'Checkout Repository'
25+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
26+
- name: 'Dependency Review'
27+
uses: actions/dependency-review-action@3b139cfc5fae8b618d3eae3675e383bb1769c019 # v4.5.0

.github/workflows/labeler.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,9 @@ jobs:
1919
if: github.event.pull_request.draft == false
2020
runs-on: ubuntu-24.04
2121
steps:
22+
- name: Harden Runner
23+
uses: step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4
24+
with:
25+
egress-policy: audit
26+
2227
- uses: actions/labeler@8558fd74291d67161a8a78ce36a881fa63b766a9 # v5

.github/workflows/lint.yml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@ jobs:
3030
if: github.event.pull_request.draft == false
3131
runs-on: ubuntu-24.04
3232
steps:
33+
- name: Harden Runner
34+
uses: step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4
35+
with:
36+
egress-policy: audit
37+
3338
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
3439
- uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3
3540
id: changes
@@ -47,15 +52,20 @@ jobs:
4752
name: Linting
4853
runs-on: ubuntu-24.04
4954
steps:
55+
- name: Harden Runner
56+
uses: step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4
57+
with:
58+
egress-policy: audit
59+
5060
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
5161

5262
# need to setup go toolchain explicitly
53-
- uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5
63+
- uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5
5464
with:
5565
go-version-file: go.mod
5666

5767
- name: golangci-lint
58-
uses: golangci/golangci-lint-action@971e284b6050e8a5849b72094c50ab08da042db8 # v6
68+
uses: golangci/golangci-lint-action@ec5d18412c0aeab7936cb16880d708ba2a64e1ae # v6
5969
with:
6070
# renovate: datasource=github-releases depName=golangci/golangci-lint
6171
version: v1.62.2
@@ -66,4 +76,9 @@ jobs:
6676
name: Linting
6777
runs-on: ubuntu-24.04
6878
steps:
79+
- name: Harden Runner
80+
uses: step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4
81+
with:
82+
egress-policy: audit
83+
6984
- run: 'echo "No build required"'

.github/workflows/pr-lint.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ jobs:
1515
name: Validate PR title
1616
runs-on: ubuntu-24.04
1717
steps:
18+
- name: Harden Runner
19+
uses: step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4
20+
with:
21+
egress-policy: audit
22+
1823
- uses: amannn/action-semantic-pull-request@0723387faaf9b38adef4775cd42cfd5155ed6017 # v5
1924
env:
2025
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/pr-size-labeler.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ jobs:
1212
runs-on: ubuntu-latest
1313
name: Label the PR size
1414
steps:
15+
- name: Harden Runner
16+
uses: step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4
17+
with:
18+
egress-policy: audit
19+
1520
- uses: codelytv/pr-size-labeler@c7a55a022747628b50f3eb5bf863b9e796b8f274 # v1
1621
with:
1722
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/release.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,16 @@ jobs:
1010
goreleaser:
1111
runs-on: ubuntu-24.04
1212
steps:
13+
- name: Harden Runner
14+
uses: step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4
15+
with:
16+
egress-policy: audit
17+
1318
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
1419
with:
1520
submodules: true
1621

17-
- uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5
22+
- uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5
1823
with:
1924
go-version-file: go.mod
2025

.github/workflows/renovate-config.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ jobs:
1919
validate:
2020
runs-on: ubuntu-24.04
2121
steps:
22+
- name: Harden Runner
23+
uses: step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4
24+
with:
25+
egress-policy: audit
26+
2227
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
23-
- uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4
28+
- uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4
2429
- run: npx --package renovate -c 'renovate-config-validator'

.github/workflows/scorecard.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ jobs:
1919
id-token: write
2020

2121
steps:
22+
- name: Harden Runner
23+
uses: step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2
24+
with:
25+
egress-policy: audit
26+
2227
- name: 'Checkout code'
2328
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2429
with:

.github/workflows/stale.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,12 @@ jobs:
1212
pull-requests: write # for actions/stale to close stale PRs
1313
runs-on: ubuntu-24.04
1414
steps:
15-
- uses: actions/stale@28ca1036281a5e5922ead5184a1bbf96e5fc984e # v9
15+
- name: Harden Runner
16+
uses: step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4
17+
with:
18+
egress-policy: audit
19+
20+
- uses: actions/stale@5bef64f19d7facfb25b37b414482c7164d639639 # v9
1621
with:
1722
stale-pr-message: 'This issue is stale because it has been open for 1 month with no activity. Remove stale label or comment or this will be closed in 1 month.'
1823
stale-issue-message: This issue is stale because it has been open for 1 month with no activity. Remove stale label or comment or this will be closed in 1 month.'

0 commit comments

Comments
 (0)