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

arm pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tooling-actions.git


The following commit(s) were added to refs/heads/main by this push:
     new 946a261  Add phase and uid to action for use in auth
946a261 is described below

commit 946a261f2335c1626441e403dab84c3ad3474343
Author: Alastair McFarlane <[email protected]>
AuthorDate: Tue Jan 13 17:22:34 2026 +0000

    Add phase and uid to action for use in auth
---
 .github/workflows/distribute-maven.yml | 16 +++++++++++++++-
 1 file changed, 15 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/distribute-maven.yml 
b/.github/workflows/distribute-maven.yml
index 18560a2..aae639d 100644
--- a/.github/workflows/distribute-maven.yml
+++ b/.github/workflows/distribute-maven.yml
@@ -24,12 +24,18 @@ on:
       atr-id:
         description: 'Run ID (from ATR)'
         required: true
+      asf-uid:
+        description: 'Originating user ID'
+        required: true
       project:
         description: 'Project in ATR to pull files from'
         required: true
       version:
         description: 'Version in ATR to pull files from'
         required: true
+      phase:
+        description: 'Expected release phase in ATR'
+        required: true
       distribution-owner-namespace:
         description: "Owner namespace"
         required: true
@@ -83,12 +89,20 @@ jobs:
           jq -n --arg publisher github \
                 --arg jwt "$JWT" \
                 --arg key "$SSH_PUBLIC_KEY" \
-                '{publisher:$publisher, jwt:$jwt, ssh_key:$key}' |
+                --arg uid "$INPUTS_ASF_UID" \
+                --arg phase "$INPUTS_PHASE" \
+                --arg project_name "$INPUTS_PROJECT" \
+                --arg version "$INPUTS_VERSION" \
+                '{publisher:$publisher, jwt:$jwt, ssh_key:$key, asf_uid:$uid, 
project_name:$project_name, phase:$phase, version:$version}' |
             curl -sS --fail-with-body -X POST -H 'Content-Type: 
application/json' -d @- \
               "https://${ATR_HOST}/api/distribute/ssh/register";
         env:
           JWT: ${{ steps.create-github-jwt.outputs.jwt }}
           SSH_PUBLIC_KEY: ${{ steps.generate-ssh-key.outputs.ssh_public_key }}
+          INPUTS_PROJECT: ${{ inputs.project }}
+          INPUTS_VERSION: ${{ inputs.version }}
+          INPUTS_PHASE: ${{ inputs.phase }}
+          INPUTS_ASF_UID: ${{ inputs.asf-uid }}
 
       - name: Download from ATR using rsync
         shell: bash


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to