Skip to content

Added logic for updating HF_ENDPOINT and HF_TOKEN from default or spe…#3379

Merged
naveenku-jfrog merged 10 commits intojfrog:masterfrom
naveenku-jfrog:fix/Added-server-id-support-in-huggingface-commands
Mar 5, 2026
Merged

Added logic for updating HF_ENDPOINT and HF_TOKEN from default or spe…#3379
naveenku-jfrog merged 10 commits intojfrog:masterfrom
naveenku-jfrog:fix/Added-server-id-support-in-huggingface-commands

Conversation

@naveenku-jfrog
Copy link
Collaborator

@naveenku-jfrog naveenku-jfrog commented Mar 3, 2026

  • All tests have passed. If this feature is not already covered by the tests, new tests have been added.
  • The pull request is targeting the master branch.
  • The code has been validated to compile successfully by running go vet ./....
  • The code has been formatted properly using go fmt ./....

What: Added logic for updating HF_ENDPOINT and HF_TOKEN from default or specific server details itself
Why: Taking advantage of already stored config instead of manually exporting token and endpoint.
Testing: Done, on artifactory instance.

@naveenku-jfrog naveenku-jfrog added the safe to test Approve running integration tests on a pull request label Mar 3, 2026
@naveenku-jfrog naveenku-jfrog added safe to test Approve running integration tests on a pull request and removed safe to test Approve running integration tests on a pull request labels Mar 3, 2026
@naveenku-jfrog naveenku-jfrog added safe to test Approve running integration tests on a pull request and removed safe to test Approve running integration tests on a pull request labels Mar 3, 2026
@naveenku-jfrog naveenku-jfrog added safe to test Approve running integration tests on a pull request and removed safe to test Approve running integration tests on a pull request labels Mar 3, 2026
@naveenku-jfrog naveenku-jfrog added safe to test Approve running integration tests on a pull request and removed safe to test Approve running integration tests on a pull request labels Mar 3, 2026
@naveenku-jfrog naveenku-jfrog added safe to test Approve running integration tests on a pull request and removed safe to test Approve running integration tests on a pull request labels Mar 3, 2026
@naveenku-jfrog naveenku-jfrog added safe to test Approve running integration tests on a pull request and removed safe to test Approve running integration tests on a pull request labels Mar 4, 2026
@github-actions
Copy link
Contributor

github-actions bot commented Mar 4, 2026

👍 Frogbot scanned this pull request and did not find any new security issues.


return cliutils.PrintHelpAndReturnError("Please specify a repository key.", c)
}
hfEndpoint := serverDetails.GetArtifactoryUrl() + huggingfaceAPI + "/" + repoKey
err := os.Setenv(HF_ENDPOINT, hfEndpoint)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can add some logs stating "Setting HF_ENDPOINT to:", hfEndpoint , WDYT?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually we should not expose HF_ENDPOINT and HF_TOKEN in logs.

@naveenku-jfrog naveenku-jfrog merged commit 1e63af4 into jfrog:master Mar 5, 2026
79 of 82 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

safe to test Approve running integration tests on a pull request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants