Code Monkey home page Code Monkey logo

Comments (5)

yahavi avatar yahavi commented on May 30, 2024

@wichert,
Thanks for reporting this issue.
The Setup JFrog CLI GitHub Action downloads the JFrog CLI and configures the JFrog connection details under $USER_HOME/.jfrog/. The credentials will be available to all next JFrog CLI commands.
The Action can't have a post script, since the JFrog CLI commands run after this Action.
Therefore, for self-hosted agents, we'd recommend to configure a cleanup step:

# Run the action
- jfrog/setup-jfrog-cli@v1
  env:
  JF_ARTIFACTORY_1: ${{ secrets.JF_ARTIFACTORY_SECRET_1 }}
# Run CLI commands 
- run: |
   jfrog rt ...

...

# Clean up at the end of the workflow
- name: Clean Up
   if: always()
   run: jfrog c rm --quiet

Please let us know if that helped.

from setup-jfrog-cli.

wichert avatar wichert commented on May 30, 2024

@yahavi You should use the post action to clear credentials. See for example how the docker/login-action does this: https://github.com/docker/login-action/blob/master/action.yml#L27

from setup-jfrog-cli.

wichert avatar wichert commented on May 30, 2024

@yahavi To be clear: the post run step executes at the end of the workflow, not at the end of the step. This is not documented correctly in the GitHub Action documentation.

from setup-jfrog-cli.

yahavi avatar yahavi commented on May 30, 2024

@wichert,
I didn't know this. Thanks for this information!
I created #35 to resolve this issue.

from setup-jfrog-cli.

yahavi avatar yahavi commented on May 30, 2024

@wichert,
Setup JFrog CLI 1.1.4 is released and synchronized in the v1 tag as well.
This version contains #35.
We'd appreciate your feedback on that.

from setup-jfrog-cli.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.