Skip to content

Conversation

@sverdlov93
Copy link
Contributor

@sverdlov93 sverdlov93 commented Jan 8, 2026

Summary

This PR includes two fixes to reduce noise in GitHub workflow summaries.

Fix 1: Skip git info collection when no .git directory exists

Avoids annoying warnings in GitHub workflow summaries when the action runs outside a git directory.

Problem: The action attempts to collect git information via build-add-git even when there's no .git directory present, resulting in unnecessary warning messages.

Solution: Added a check for the .git directory before attempting to collect git information. If no .git directory exists, logs an info message and skips the git collection step.

Fix 2: Set JFROG_CLI_AVOID_NEW_VERSION_WARNING environment variable

Avoids constant CLI version checks via the GitHub API which can cause rate limiting.

Problem: JFrog CLI performs version checks against GitHub API, which can trigger rate limits during heavy CI usage.

Solution: Set JFROG_CLI_AVOID_NEW_VERSION_WARNING=true to disable the version check warning.

@sverdlov93 sverdlov93 changed the title Skip git info collection when no .git directory exists Skip git info collection error and warning when no .git directory exists Jan 8, 2026
@sverdlov93 sverdlov93 added improvement Automatically generated release notes safe to test Approve running integration tests on a pull request labels Jan 8, 2026
…stence and set JFROG_CLI_AVOID_NEW_VERSION_WARNING to true
@sverdlov93 sverdlov93 changed the title Skip git info collection error and warning when no .git directory exists Reduce workflow noise: skip git info without .git dir and avoid CLI version check Jan 8, 2026
@sverdlov93 sverdlov93 changed the title Reduce workflow noise: skip git info without .git dir and avoid CLI version check Reduce noise: skip git info without .git dir and avoid CLI version check Jan 8, 2026
@sverdlov93 sverdlov93 changed the title Reduce noise: skip git info without .git dir and avoid CLI version check Reduce warnings noise: skip git info without .git dir and avoid CLI version check Jan 8, 2026
'*password*;*secret*;*key*;*token*;*auth*;JF_ARTIFACTORY_*;JF_ENV_*;JF_URL;JF_USER;JF_PASSWORD;JF_ACCESS_TOKEN',
);
Utils.exportVariableIfNotSet('JFROG_CLI_OFFER_CONFIG', 'false');
Utils.exportVariableIfNotSet('JFROG_CLI_AVOID_NEW_VERSION_WARNING', 'true');
Copy link
Collaborator

Choose a reason for hiding this comment

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

Where do you use this env var?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It is an environment variable that affects JFrog CLI behavior by disabling the new existing version check on each run.
The check is useful for local usage, but in CI it is redundant and can trigger GitHub API rate limits (happened to us)
@MaorEJFrog

@sverdlov93 sverdlov93 merged commit 66f8374 into master Jan 8, 2026
13 of 21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

improvement Automatically generated release notes 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