From 6af9900713ee2997cf796588cb4f4b3d83a14298 Mon Sep 17 00:00:00 2001 From: Enguerrand Allamel Date: Tue, 9 Jul 2024 19:55:54 +0200 Subject: [PATCH] feat: Add JFrog CLI outputs to JFrog login action This commit adds the outputs `jfrog-oidc-token` and `jfrog-oidc-user` to the JFrog login action. These outputs provide the JFrog OIDC token and username generated by the Setup JFrog CLI when setting the oidc-provider-name. This allows users to access and use these values in subsequent steps or workflows. --- actions/jfrog-login/action.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/actions/jfrog-login/action.yaml b/actions/jfrog-login/action.yaml index 7c399dc..ff33cb3 100644 --- a/actions/jfrog-login/action.yaml +++ b/actions/jfrog-login/action.yaml @@ -1,6 +1,14 @@ name: "[Ledger Security] Login to JFrog" description: "Ledger Security Action wrapper to login to JFrog" +outputs: + jfrog-oidc-token: + description: "From JFrog CLI: JFrog OIDC token generated by the Setup JFrog CLI when setting oidc-provider-name." + value: ${{ setup-jfrog-cli.outputs.oidc-token }} + jfrog-oidc-user: + description: "From JFrog CLI: JFrog OIDC username from the OIDC token generated by the Setup JFrog CLI when setting oidc-provider-name." + value: ${{ setup-jfrog-cli.outputs.oidc-user }} + runs: using: "composite" steps: