Skip to content

Commit bf3c6cd

Browse files
Merge pull request #1596 from pboyd/sync-kf-main-20260306
sync kf main 20260306
2 parents cb2ad3a + b389154 commit bf3c6cd

File tree

60 files changed

+4233
-320
lines changed

Some content is hidden

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

60 files changed

+4233
-320
lines changed

.gitattributes

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
# Do not edit below this line. Edits will be overwritten by gen_gitattributes.sh
55

66
catalog/clients/python/src/catalog_openapi/__init__.py linguist-generated=true
7+
catalog/clients/python/src/catalog_openapi/api/mcp_catalog_service_api.py linguist-generated=true
78
catalog/clients/python/src/catalog_openapi/api/model_catalog_service_api.py linguist-generated=true
89
catalog/clients/python/src/catalog_openapi/api_client.py linguist-generated=true
910
catalog/clients/python/src/catalog_openapi/configuration.py linguist-generated=true
@@ -16,6 +17,7 @@ catalog/clients/python/src/catalog_openapi/models/base_resource_dates.py linguis
1617
catalog/clients/python/src/catalog_openapi/models/base_resource_list.py linguist-generated=true
1718
catalog/clients/python/src/catalog_openapi/models/catalog_artifact.py linguist-generated=true
1819
catalog/clients/python/src/catalog_openapi/models/catalog_artifact_list.py linguist-generated=true
20+
catalog/clients/python/src/catalog_openapi/models/catalog_asset_type.py linguist-generated=true
1921
catalog/clients/python/src/catalog_openapi/models/catalog_label.py linguist-generated=true
2022
catalog/clients/python/src/catalog_openapi/models/catalog_label_list.py linguist-generated=true
2123
catalog/clients/python/src/catalog_openapi/models/catalog_metrics_artifact.py linguist-generated=true
@@ -32,6 +34,23 @@ catalog/clients/python/src/catalog_openapi/models/field_filter.py linguist-gener
3234
catalog/clients/python/src/catalog_openapi/models/filter_option.py linguist-generated=true
3335
catalog/clients/python/src/catalog_openapi/models/filter_option_range.py linguist-generated=true
3436
catalog/clients/python/src/catalog_openapi/models/filter_options_list.py linguist-generated=true
37+
catalog/clients/python/src/catalog_openapi/models/mcp_artifact.py linguist-generated=true
38+
catalog/clients/python/src/catalog_openapi/models/mcp_endpoints.py linguist-generated=true
39+
catalog/clients/python/src/catalog_openapi/models/mcp_env_var_metadata.py linguist-generated=true
40+
catalog/clients/python/src/catalog_openapi/models/mcp_resource_recommendation.py linguist-generated=true
41+
catalog/clients/python/src/catalog_openapi/models/mcp_resource_recommendation_high.py linguist-generated=true
42+
catalog/clients/python/src/catalog_openapi/models/mcp_resource_recommendation_minimal.py linguist-generated=true
43+
catalog/clients/python/src/catalog_openapi/models/mcp_resource_recommendation_recommended.py linguist-generated=true
44+
catalog/clients/python/src/catalog_openapi/models/mcp_runtime_metadata.py linguist-generated=true
45+
catalog/clients/python/src/catalog_openapi/models/mcp_runtime_metadata_capabilities.py linguist-generated=true
46+
catalog/clients/python/src/catalog_openapi/models/mcp_runtime_metadata_health_endpoints.py linguist-generated=true
47+
catalog/clients/python/src/catalog_openapi/models/mcp_security_indicator.py linguist-generated=true
48+
catalog/clients/python/src/catalog_openapi/models/mcp_server.py linguist-generated=true
49+
catalog/clients/python/src/catalog_openapi/models/mcp_server_list.py linguist-generated=true
50+
catalog/clients/python/src/catalog_openapi/models/mcp_tool.py linguist-generated=true
51+
catalog/clients/python/src/catalog_openapi/models/mcp_tool_parameter.py linguist-generated=true
52+
catalog/clients/python/src/catalog_openapi/models/mcp_tool_with_server.py linguist-generated=true
53+
catalog/clients/python/src/catalog_openapi/models/mcp_tools_list.py linguist-generated=true
3554
catalog/clients/python/src/catalog_openapi/models/metadata_bool_value.py linguist-generated=true
3655
catalog/clients/python/src/catalog_openapi/models/metadata_double_value.py linguist-generated=true
3756
catalog/clients/python/src/catalog_openapi/models/metadata_int_value.py linguist-generated=true

.github/workflows/build-and-push-async-upload.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@ on:
1313
- '!**.txt'
1414
- '.github/workflows/build-and-push-async-upload.yml' # self
1515

16-
permissions: # set contents: read at top-level, per OpenSSF ScoreCard rule TokenPermissionsID
17-
contents: read
16+
permissions: read-all
1817

1918
env:
2019
IMG_REGISTRY: quay.io

.github/workflows/build-and-push-controller-image.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@ on:
1515
# - '.github/ISSUE_TEMPLATE/**'
1616
# - '.github/dependabot.yml'
1717
# - 'docs/**'
18-
permissions: # set contents: read at top-level, per OpenSSF ScoreCard rule TokenPermissionsID\
19-
contents: read
18+
permissions: read-all
2019
env:
2120
IMG_REGISTRY: quay.io
2221
IMG_ORG: opendatahub

.github/workflows/build-and-push-csi-image.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@ on:
1313
- '.github/ISSUE_TEMPLATE/**'
1414
- '.github/dependabot.yml'
1515
- 'docs/**'
16-
permissions: # set contents: read at top-level, per OpenSSF ScoreCard rule TokenPermissionsID\
17-
contents: read
16+
permissions: read-all
1817
env:
1918
IMG_REGISTRY: quay.io
2019
IMG_ORG: opendatahub

.github/workflows/build-and-push-image.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ env:
2020
DOCKER_PWD: ${{ secrets.QUAY_PASSWORD }}
2121
PLATFORMS: linux/arm64,linux/amd64
2222

23-
permissions: # set contents: read at top-level, per OpenSSF ScoreCard rule TokenPermissionsID
24-
contents: read
23+
permissions: read-all
2524

2625
jobs:
2726
prepare:

.github/workflows/build-and-push-ui-images-standalone.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@ on:
1313
- '!**.gitignore'
1414
- '!**.md'
1515
- '!**.txt'
16-
permissions: # set contents: read at top-level, per OpenSSF ScoreCard rule TokenPermissionsID
17-
contents: read
16+
permissions: read-all
1817
env:
1918
IMG_REGISTRY: ghcr.io
2019
IMG_ORG: kubeflow

.github/workflows/build-and-push-ui-images.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@ on:
1313
- '!**.gitignore'
1414
- '!**.md'
1515
- '!**.txt'
16-
permissions: # set contents: read at top-level, per OpenSSF ScoreCard rule TokenPermissionsID
17-
contents: read
16+
permissions: read-all
1817
env:
1918
IMG_REGISTRY: ghcr.io
2019
IMG_ORG: kubeflow
Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
name: Approve Workflow Runs
2+
3+
permissions: read-all
4+
5+
on:
6+
pull_request_target:
7+
types:
8+
- labeled
9+
- synchronize
10+
11+
concurrency:
12+
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event.number }}
13+
cancel-in-progress: true
14+
15+
jobs:
16+
ok-to-test:
17+
if: contains(github.event.pull_request.labels.*.name, 'ok-to-test') || github.event_name == 'pull_request_target'
18+
runs-on: ubuntu-latest
19+
continue-on-error: true
20+
permissions:
21+
actions: write
22+
contents: read
23+
24+
steps:
25+
- name: Check if author is a Kubeflow GitHub member
26+
id: membership-check
27+
env:
28+
AUTHOR_ASSOCIATION: ${{ github.event.pull_request.author_association }}
29+
PR_AUTHOR: ${{ github.event.pull_request.user.login }}
30+
PR_NUMBER: ${{ github.event.pull_request.number }}
31+
run: |
32+
echo "::group::PR Information"
33+
echo "PR Number: #$PR_NUMBER"
34+
echo "PR Author: $PR_AUTHOR"
35+
echo "Author Association: $AUTHOR_ASSOCIATION"
36+
echo "::endgroup::"
37+
38+
if [[ "$AUTHOR_ASSOCIATION" == "MEMBER" || "$AUTHOR_ASSOCIATION" == "OWNER" || "$AUTHOR_ASSOCIATION" == "COLLABORATOR" ]]; then
39+
echo "::notice::Author '$PR_AUTHOR' is a trusted contributor (association: $AUTHOR_ASSOCIATION). Auto-approving workflow runs."
40+
echo "is_member=true" >> $GITHUB_OUTPUT
41+
else
42+
echo "::notice::Author '$PR_AUTHOR' is not a trusted contributor (association: $AUTHOR_ASSOCIATION). Checking for 'ok-to-test' label."
43+
echo "is_member=false" >> $GITHUB_OUTPUT
44+
fi
45+
46+
- name: Approve Pending Workflow Runs
47+
if: steps.membership-check.outputs.is_member == 'true' || contains(github.event.pull_request.labels.*.name, 'ok-to-test')
48+
uses: actions/github-script@v8
49+
with:
50+
retries: 3
51+
script: |
52+
const request = {
53+
owner: context.repo.owner,
54+
repo: context.repo.repo,
55+
event: "pull_request",
56+
status: "action_required",
57+
head_sha: context.payload.pull_request.head.sha,
58+
}
59+
60+
core.info(`Getting workflow runs that need approval for commit ${request.head_sha}`)
61+
const runs = await github.paginate(github.rest.actions.listWorkflowRunsForRepo, request)
62+
63+
core.info(`Found ${runs.length} workflow runs that need approval`)
64+
for (const run of runs) {
65+
core.info(`Approving workflow run ${run.id}`)
66+
const request = {
67+
owner: context.repo.owner,
68+
repo: context.repo.repo,
69+
run_id: run.id,
70+
}
71+
await github.rest.actions.approveWorkflowRun(request)
72+
}

.github/workflows/go-generate.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,14 @@ on:
44
schedule:
55
- cron: "0 0 * * 1" # Monday 12 AM UTC
66

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

119
jobs:
1210
go-generate:
1311
runs-on: ubuntu-latest
12+
permissions:
13+
contents: write
14+
pull-requests: write
1415
steps:
1516
- uses: actions/checkout@v6
1617
- name: Setup Go

.github/workflows/python-tests.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,9 @@ jobs:
110110
- python: "3.10"
111111
kubernetes-version: "v1.33.7"
112112
manifest-db: "db"
113+
- python: "3.13"
114+
kubernetes-version: "v1.34.3"
115+
manifest-db: "db"
113116
env:
114117
FORCE_COLOR: "1"
115118
IMG_REGISTRY: quay.io

0 commit comments

Comments
 (0)