jfrog / jfrog-cli-core

Apache License 2.0
32 stars 55 forks source link

Lock config during import #1176

Closed yahavi closed 2 months ago

yahavi commented 3 months ago

The JFrog CLI config file is presently only locked before jf c add, jf c edit, jf c rm, and jf c use commands. This pull request includes a lock before jf c import to prevent the config file from being corrupted when importing multiple server configurations simultaneously.

Fix https://github.com/jfrog/setup-jfrog-cli/issues/141 and possibly https://github.com/jfrog/setup-jfrog-cli/issues/94.

github-actions[bot] commented 3 months ago
[![👍 Frogbot scanned this pull request and did not find any new security issues.](https://raw.githubusercontent.com/jfrog/frogbot/master/resources/v2/noVulnerabilityBannerPR.png)](https://docs.jfrog-applications.jfrog.io/jfrog-applications/frogbot)

[🐸 JFrog Frogbot](https://docs.jfrog-applications.jfrog.io/jfrog-applications/frogbot)