You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by xt...@apache.org on 2026/05/25 06:01:43 UTC

(flink-agents) branch main updated (962d5871 -> dd308754)

This is an automated email from the ASF dual-hosted git repository.

xintongsong pushed a change to branch main
in repository https://gitbox.apache.org/repos/asf/flink-agents.git


    from 962d5871 [tools]Import Wizard for Installation Setup (#599)
     new 70820654 [ci] Add local rsync-deployments composite action
     new dd308754 [ci] Use local rsync-deployments action in docs workflow

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .../actions/rsync-deployments/LICENSE              |  9 ++-
 .github/actions/rsync-deployments/action.yml       | 66 ++++++++++++++++++++++
 .github/workflows/docs.yml                         |  4 +-
 3 files changed, 75 insertions(+), 4 deletions(-)
 copy dist/src/main/resources/META-INF/licenses/LICENSE.mcp => .github/actions/rsync-deployments/LICENSE (79%)
 create mode 100644 .github/actions/rsync-deployments/action.yml


(flink-agents) 02/02: [ci] Use local rsync-deployments action in docs workflow

Posted by xt...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

xintongsong pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/flink-agents.git

commit dd30875430e494e3204460c9f5ae97e05a15dde7
Author: youjin <me...@gmail.com>
AuthorDate: Mon May 25 10:06:59 2026 +0800

    [ci] Use local rsync-deployments action in docs workflow
    
    Switch the two upload steps in .github/workflows/docs.yml from
    burnett01/rsync-deployments to the locally-defined action added in the
    previous commit. This fixes the nightly docs build, which currently
    fails because the third-party action is not in the ASF allowed-actions
    list.
    
    This commit only touches main's workflow file. The cron trigger always
    reads the workflow definition from the default branch, so release
    branches do not need this change for the scheduled build to work --
    they only need the local action committed alongside.
---
 .github/workflows/docs.yml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml
index e7437a4f..4b83e4f2 100644
--- a/.github/workflows/docs.yml
+++ b/.github/workflows/docs.yml
@@ -56,7 +56,7 @@ jobs:
           docker run --rm --volume "$PWD:/root/flink-agents" chesnay/flink-ci:java_8_11_17_21_maven_386 bash -c "cd /root/flink-agents && chmod +x ./tools/docs.sh && ./tools/docs.sh"
 
       - name: Upload documentation
-        uses: burnett01/rsync-deployments@7659d600d8bdd035bb5cdfba1d4bd0dd4a307ca6 # 8.0.2
+        uses: ./.github/actions/rsync-deployments
         with:
           switches: --archive --compress --delete
           path: docs/target/
@@ -68,7 +68,7 @@ jobs:
 
       - name: Upload documentation alias
         if: env.flink_alias != ''
-        uses: burnett01/rsync-deployments@7659d600d8bdd035bb5cdfba1d4bd0dd4a307ca6 # 8.0.2
+        uses: ./.github/actions/rsync-deployments
         with:
           switches: --archive --compress --delete
           path: docs/target/


(flink-agents) 01/02: [ci] Add local rsync-deployments composite action

Posted by xt...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

xintongsong pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/flink-agents.git

commit 708206544a3cd858f67447f7865f13ae777aa27e
Author: youjin <me...@gmail.com>
AuthorDate: Mon May 25 10:06:43 2026 +0800

    [ci] Add local rsync-deployments composite action
    
    Add a local composite action under .github/actions/rsync-deployments
    that wraps rsync-over-SSH for documentation deployment. Ported from
    apache/flink-kubernetes-operator#1035 with MIT attribution preserved.
    
    This action is intended to replace the third-party
    burnett01/rsync-deployments action, which is not in the ASF
    allowed-actions list. Locally-defined actions are not subject to
    that allow-list, so they can be used safely in ASF repositories.
    
    This commit is purely additive (no existing files modified) and can be
    cherry-picked cleanly to release branches so the nightly docs matrix
    job can resolve the local action when checking out those branches.
---
 .github/actions/rsync-deployments/LICENSE    | 26 +++++++++++
 .github/actions/rsync-deployments/action.yml | 66 ++++++++++++++++++++++++++++
 2 files changed, 92 insertions(+)

diff --git a/.github/actions/rsync-deployments/LICENSE b/.github/actions/rsync-deployments/LICENSE
new file mode 100644
index 00000000..f199b801
--- /dev/null
+++ b/.github/actions/rsync-deployments/LICENSE
@@ -0,0 +1,26 @@
+The local composite action at .github/actions/rsync-deployments/action.yml
+was inspired by the rsync-deployments GitHub Action, which is distributed
+under the MIT License reproduced below.
+
+MIT License
+
+Copyright (c) 2019-2022 Contention
+Copyright (c) 2019-2025 Burnett01
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/.github/actions/rsync-deployments/action.yml b/.github/actions/rsync-deployments/action.yml
new file mode 100644
index 00000000..4ac771bd
--- /dev/null
+++ b/.github/actions/rsync-deployments/action.yml
@@ -0,0 +1,66 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#      http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# This implementation took inspiration from https://github.com/Burnett01/rsync-deployments/blob/7.1.0/action.yml
+name: Rsync Deploy (local)
+description: Upload a folder to a single remote destination via rsync over SSH.
+inputs:
+  switches:
+    description: rsync switches
+    required: false
+    default: "--archive --compress"
+  path:
+    description: Local source directory
+    required: true
+  remote_path:
+    description: Remote destination directory
+    required: true
+  remote_host:
+    description: SSH host
+    required: true
+  remote_port:
+    description: SSH port
+    required: false
+    default: "22"
+  remote_user:
+    description: SSH username
+    required: true
+  remote_key:
+    description: SSH private key (OpenSSH/PEM)
+    required: true
+runs:
+  using: composite
+  steps:
+    - name: rsync via ssh-agent
+      shell: bash
+      run: |
+        set -euo pipefail
+
+        # Start agent and load the key
+        eval "$(ssh-agent -s)"
+        ssh-add - <<< "${{ inputs.remote_key }}"
+
+        # SSH command with host key checking disabled (matches your reference impl)
+        RSH="ssh -o StrictHostKeyChecking=no -p ${{ inputs.remote_port }}"
+
+        # Resolve paths and DSN
+        LOCAL_PATH="$GITHUB_WORKSPACE/${{ inputs.path }}"
+        DSN="${{ inputs.remote_user }}@${{ inputs.remote_host }}"
+
+        # Deploy
+        sh -c "rsync ${{ inputs.switches }} -e '$RSH' $LOCAL_PATH $DSN:${{ inputs.remote_path }}"
+
+        # Cleanup identities from the agent
+        ssh-add -D || true