Skip to content

Commit

Permalink
feat: Add JFrog CLI outputs to JFrog login action
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
AEnguerrand committed Jul 9, 2024
1 parent 51333a6 commit 6af9900
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions actions/jfrog-login/action.yaml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down

0 comments on commit 6af9900

Please sign in to comment.