Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Commands for Enhanced Usage Insights #224

Merged
merged 11 commits into from
Nov 14, 2024
Prev Previous commit
Next Next commit
Export variables for usage report
  • Loading branch information
EyalDelarea committed Nov 7, 2024
commit 6552dbe1033685da7ca54e5b12b4707dea977f2a
2 changes: 2 additions & 0 deletions lib/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ class Utils {
// Use JF_ENV or the credentials found in the environment variables
return jfrogCredentials;
}
// Used for usage reporting
this.exportVariableIfNotSet("JFROG_CLI_OIDC_CONFIG", "TRUE");
if (!jfrogCredentials.jfrogUrl) {
throw new Error(`JF_URL must be provided when oidc-provider-name is specified`);
}
Expand Down