From d32a569eceebc209917b8f9a86fb7cb1003364d3 Mon Sep 17 00:00:00 2001 From: Enguerrand Allamel Date: Tue, 9 Jul 2024 19:07:14 +0200 Subject: [PATCH] feat: Add JFrog Artifactory upload action This commit adds a new action, "[Ledger Security] Upload to JFrog Artifactory", which is a wrapper for the JFrog Artifactory upload functionality. It allows users to specify the path to the file to upload and the name of the Artifactory repository to upload to. The action uses the jfrog/setup-jfrog-cli@v4 action to set up the JFrog CLI and then runs the "jfrog rt u" command to perform the upload. --- actions/jfrog-upload/action.yaml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 actions/jfrog-upload/action.yaml diff --git a/actions/jfrog-upload/action.yaml b/actions/jfrog-upload/action.yaml new file mode 100644 index 0000000..80c78c1 --- /dev/null +++ b/actions/jfrog-upload/action.yaml @@ -0,0 +1,26 @@ +name: "[Ledger Security] Upload to JFrog Artifactory" +description: "Ledger Security Action wrapper to login to JFrog" + +inputs: + path: + description: "path to the file to upload" + required: true + default: "./" + artifactory_repository: + description: "name of artifactory_repository to upload to" + required: true + default: "./" + +runs: + using: "composite" + steps: + - uses: jfrog/setup-jfrog-cli@v4 + id: setup-jfrog-cli + env: + JF_URL: "https://artifactory.ledgerlabs.net" + with: + oidc-provider-name: github + oidc-audience: artifactory + - run: | + jfrog rt u ${{ inputs.path }} ${{ inputs.artifactory_repository}} + shell: bash \ No newline at end of file