Skip to content

Commit 2264f1b

Browse files
vitess-bot[bot]vitess-bot
authored andcommitted
Cherry-pick cbf146b with conflicts
1 parent b9fedac commit 2264f1b

File tree

111 files changed

+3108
-9
lines changed

Some content is hidden

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

111 files changed

+3108
-9
lines changed

.github/workflows/assign_milestone.yml

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ on:
44
pull_request_target:
55
types: [opened]
66

7-
permissions: read-all
7+
permissions:
8+
pull-requests: write
9+
contents: read
810

911
env:
1012
GH_TOKEN: ${{ github.token }}
@@ -13,18 +15,34 @@ jobs:
1315
build:
1416
name: Assign Milestone
1517
runs-on: ubuntu-24.04
16-
permissions:
17-
pull-requests: write
1818

1919
steps:
20+
<<<<<<< HEAD
2021
- name: Set up Go
2122
uses: actions/setup-go@v5
2223
with:
2324
go-version: 1.22.10
2425

2526
- name: Checkout code
2627
uses: actions/checkout@v4
28+
=======
29+
- name: Checkout code
30+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
31+
with:
32+
# We must explicitly checkout the base's SHA to avoid executing any code coming from
33+
# the PR's SHA - Which would be executed in the base branch's context.
34+
# This is really important to limit any sort of pwn requests.
35+
ref: ${{ github.base_ref }}
36+
persist-credentials: 'false'
37+
>>>>>>> cbf146b5eb (Security improvements to GitHub Actions (#17520))
2738

2839
- name: Assign Milestone
2940
run: |
30-
gh pr edit ${{ github.event.number }} --milestone "v$(sed -n 's/.*versionName.*\"\([[:digit:]\.]*\).*\"/\1/p' ./go/vt/servenv/version.go)"
41+
# Ensure the content we sed from version.go is sanitized and match the correct format
42+
VERSION=$(sed -n 's/.*versionName.*\"\([[:digit:]\.]*\).*\"/\1/p' ./go/vt/servenv/version.go)
43+
if [[ ! "$VERSION" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
44+
echo "Invalid version format: $VERSION"
45+
exit 1
46+
fi
47+
48+
gh pr edit ${{ github.event.number }} --milestone "v$VERSION"

.github/workflows/auto_approve_pr.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,14 @@ jobs:
1616

1717
steps:
1818
- name: Checkout code
19+
<<<<<<< HEAD
1920
uses: actions/checkout@v4
21+
=======
22+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
23+
with:
24+
persist-credentials: 'false'
25+
26+
>>>>>>> cbf146b5eb (Security improvements to GitHub Actions (#17520))
2027
- name: Auto Approve Pull Request
2128
env:
2229
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/check_make_vtadmin_authz_testgen.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,13 @@ jobs:
2727
2828
- name: Check out code
2929
if: steps.skip-workflow.outputs.skip-workflow == 'false'
30+
<<<<<<< HEAD
3031
uses: actions/checkout@v4
32+
=======
33+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
34+
with:
35+
persist-credentials: 'false'
36+
>>>>>>> cbf146b5eb (Security improvements to GitHub Actions (#17520))
3137

3238
- name: Check for changes in relevant files
3339
if: steps.skip-workflow.outputs.skip-workflow == 'false'

.github/workflows/check_make_vtadmin_web_proto.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,13 @@ jobs:
2727
2828
- name: Check out code
2929
if: steps.skip-workflow.outputs.skip-workflow == 'false'
30+
<<<<<<< HEAD
3031
uses: actions/checkout@v4
32+
=======
33+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
34+
with:
35+
persist-credentials: 'false'
36+
>>>>>>> cbf146b5eb (Security improvements to GitHub Actions (#17520))
3137

3238
- name: Check for changes in relevant files
3339
if: steps.skip-workflow.outputs.skip-workflow == 'false'

.github/workflows/cluster_endtoend_12.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ env:
1515

1616
jobs:
1717
build:
18+
timeout-minutes: 60
1819
name: Run endtoend tests on Cluster (12)
1920
runs-on: ubuntu-24.04
2021

@@ -45,7 +46,13 @@ jobs:
4546
4647
- name: Check out code
4748
if: steps.skip-workflow.outputs.skip-workflow == 'false'
49+
<<<<<<< HEAD
4850
uses: actions/checkout@v4
51+
=======
52+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
53+
with:
54+
persist-credentials: 'false'
55+
>>>>>>> cbf146b5eb (Security improvements to GitHub Actions (#17520))
4956

5057
- name: Check for changes in relevant files
5158
if: steps.skip-workflow.outputs.skip-workflow == 'false'
@@ -91,6 +98,7 @@ jobs:
9198
9299
- name: Get dependencies
93100
if: steps.skip-workflow.outputs.skip-workflow == 'false' && steps.changes.outputs.end_to_end == 'true'
101+
timeout-minutes: 10
94102
run: |
95103
96104
# Get key to latest MySQL repo

.github/workflows/cluster_endtoend_13.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ env:
1515

1616
jobs:
1717
build:
18+
timeout-minutes: 60
1819
name: Run endtoend tests on Cluster (13)
1920
runs-on: ubuntu-24.04
2021

@@ -45,7 +46,13 @@ jobs:
4546
4647
- name: Check out code
4748
if: steps.skip-workflow.outputs.skip-workflow == 'false'
49+
<<<<<<< HEAD
4850
uses: actions/checkout@v4
51+
=======
52+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
53+
with:
54+
persist-credentials: 'false'
55+
>>>>>>> cbf146b5eb (Security improvements to GitHub Actions (#17520))
4956

5057
- name: Check for changes in relevant files
5158
if: steps.skip-workflow.outputs.skip-workflow == 'false'
@@ -91,6 +98,7 @@ jobs:
9198
9299
- name: Get dependencies
93100
if: steps.skip-workflow.outputs.skip-workflow == 'false' && steps.changes.outputs.end_to_end == 'true'
101+
timeout-minutes: 10
94102
run: |
95103
96104
# Get key to latest MySQL repo

.github/workflows/cluster_endtoend_15.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ env:
1515

1616
jobs:
1717
build:
18+
timeout-minutes: 60
1819
name: Run endtoend tests on Cluster (15)
1920
runs-on: ubuntu-24.04
2021

@@ -45,7 +46,13 @@ jobs:
4546
4647
- name: Check out code
4748
if: steps.skip-workflow.outputs.skip-workflow == 'false'
49+
<<<<<<< HEAD
4850
uses: actions/checkout@v4
51+
=======
52+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
53+
with:
54+
persist-credentials: 'false'
55+
>>>>>>> cbf146b5eb (Security improvements to GitHub Actions (#17520))
4956

5057
- name: Check for changes in relevant files
5158
if: steps.skip-workflow.outputs.skip-workflow == 'false'
@@ -91,6 +98,7 @@ jobs:
9198
9299
- name: Get dependencies
93100
if: steps.skip-workflow.outputs.skip-workflow == 'false' && steps.changes.outputs.end_to_end == 'true'
101+
timeout-minutes: 10
94102
run: |
95103
96104
# Get key to latest MySQL repo

.github/workflows/cluster_endtoend_18.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ env:
1515

1616
jobs:
1717
build:
18+
timeout-minutes: 60
1819
name: Run endtoend tests on Cluster (18)
1920
runs-on: ubuntu-24.04
2021

@@ -45,7 +46,13 @@ jobs:
4546
4647
- name: Check out code
4748
if: steps.skip-workflow.outputs.skip-workflow == 'false'
49+
<<<<<<< HEAD
4850
uses: actions/checkout@v4
51+
=======
52+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
53+
with:
54+
persist-credentials: 'false'
55+
>>>>>>> cbf146b5eb (Security improvements to GitHub Actions (#17520))
4956

5057
- name: Check for changes in relevant files
5158
if: steps.skip-workflow.outputs.skip-workflow == 'false'
@@ -91,6 +98,7 @@ jobs:
9198
9299
- name: Get dependencies
93100
if: steps.skip-workflow.outputs.skip-workflow == 'false' && steps.changes.outputs.end_to_end == 'true'
101+
timeout-minutes: 10
94102
run: |
95103
96104
# Get key to latest MySQL repo

.github/workflows/cluster_endtoend_21.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ env:
1515

1616
jobs:
1717
build:
18+
timeout-minutes: 60
1819
name: Run endtoend tests on Cluster (21)
1920
runs-on: ubuntu-24.04
2021

@@ -45,7 +46,13 @@ jobs:
4546
4647
- name: Check out code
4748
if: steps.skip-workflow.outputs.skip-workflow == 'false'
49+
<<<<<<< HEAD
4850
uses: actions/checkout@v4
51+
=======
52+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
53+
with:
54+
persist-credentials: 'false'
55+
>>>>>>> cbf146b5eb (Security improvements to GitHub Actions (#17520))
4956

5057
- name: Check for changes in relevant files
5158
if: steps.skip-workflow.outputs.skip-workflow == 'false'
@@ -91,6 +98,7 @@ jobs:
9198
9299
- name: Get dependencies
93100
if: steps.skip-workflow.outputs.skip-workflow == 'false' && steps.changes.outputs.end_to_end == 'true'
101+
timeout-minutes: 10
94102
run: |
95103
96104
# Get key to latest MySQL repo

.github/workflows/cluster_endtoend_22.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,12 @@ env:
1515

1616
jobs:
1717
build:
18+
<<<<<<< HEAD:.github/workflows/cluster_endtoend_22.yml
1819
name: Run endtoend tests on Cluster (22)
20+
=======
21+
timeout-minutes: 60
22+
name: Run endtoend tests on Cluster (vtgate_plantests)
23+
>>>>>>> cbf146b5eb (Security improvements to GitHub Actions (#17520)):.github/workflows/cluster_endtoend_vtgate_plantests.yml
1924
runs-on: ubuntu-24.04
2025

2126
steps:
@@ -45,7 +50,13 @@ jobs:
4550
4651
- name: Check out code
4752
if: steps.skip-workflow.outputs.skip-workflow == 'false'
53+
<<<<<<< HEAD:.github/workflows/cluster_endtoend_22.yml
4854
uses: actions/checkout@v4
55+
=======
56+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
57+
with:
58+
persist-credentials: 'false'
59+
>>>>>>> cbf146b5eb (Security improvements to GitHub Actions (#17520)):.github/workflows/cluster_endtoend_vtgate_plantests.yml
4960

5061
- name: Check for changes in relevant files
5162
if: steps.skip-workflow.outputs.skip-workflow == 'false'
@@ -91,6 +102,7 @@ jobs:
91102
92103
- name: Get dependencies
93104
if: steps.skip-workflow.outputs.skip-workflow == 'false' && steps.changes.outputs.end_to_end == 'true'
105+
timeout-minutes: 10
94106
run: |
95107
96108
# Get key to latest MySQL repo

0 commit comments

Comments
 (0)