jfrog / jfrog/frogbot

JF_DEPS_REPO credentials configuration

Open
#922 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

question
Dominant language
Go
Stars
372
Forks
107
Avg merge
2d 20h
Merged PRs (30d)
5

Description

I'm configuring Frogbot and having issues with JF_DEPS_REPO property.

GitHub Action sample

- name: Fail on new vulnerabilities
  uses: jfrog/frogbot@v2
  env:
    JF_URL: ${{ vars.ARTIFACTORY_URL }}
    JF_USER: ${{ secrets.ARTIFACTORY_USER }}
    JF_PASSWORD: ${{ secrets.ARTIFACTORY_PW }}
    JF_GIT_TOKEN: ${{ secrets.GITHUB_TOKEN }}
    JF_DEPS_REPO: maven
    JF_FAIL: true
    JF_MIN_SEVERITY: high
    JF_AVOID_PREVIOUS_PR_COMMENTS_DELETION: true

maven – is a virtual repository under the specified JF_URL.

In my PR, I updated common-parent-pom from 2.0.1 to 2.0.2.
During the check, Frogbot tries to fetch common-parent-pom:2.0.1 for comparison with the new version.

My assumption is that Frogbot isn't using the provided credentials (JF_USER / JF_PASSWORD) to download the dependency, which causes the failure.

If I open the URL manually (from the error log):

  • with correct auth, the dependency starts downloading
  • unauthorized (using incognito mode), it returns 404

Error log

[Info] [INFO] Scanning for projects...
[INFO] Downloading from artifactory: https://company.biz/artifactory/maven/com/company/common-parent-pom/2.0.1/common-parent-pom-2.0.1.pom
Error: ] Some problems were encountered while processing the POMs:
[FATAL] Non-resolvable parent POM for com.company.send:api:1.0.0: The following artifacts could not be resolved: com.company:common-parent-pom:pom:2.0.1 (absent): Could not find artifact com.company:common-parent-pom:pom:2.0.1 in artifactory (https://company.biz/artifactory/maven) and 'parent.relativePath' points at wrong local POM @ line 11, column 13
 @
Error:  The build could not read 1 project -> [Help 1]
Error:
Error:    The project com.company.send:api:1.0.0 (/tmp/jfrog.cli.temp.-1757410752-1113025440/pom.xml) has 1 error
Error:      Non-resolvable parent POM for com.company.send:api:1.0.0: The following artifacts could not be resolved: com.company:common-parent-pom:pom:2.0.1 (absent): Could not find artifact com.company:common-parent-pom:pom:2.0.1 in artifactory (https://company.biz/artifactory/maven) and 'parent.relativePath' points at wrong local POM @ line 11, column 13 -> [Help 2]
Error:
Error:  To see the full stack trace of the errors, re-run Maven with the -e switch.
Error:  Re-run Maven using the -X switch to enable full debug logging.
Error:
Error:  For more information about the errors and possible solutions, please read the following articles:
Error:  [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
Error:  [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException

Did I misconfigure something?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the GitHub Action sample and the JF_DEPS_REPO, JF_USER, and JF_PASSWORD settings, then compare them with the Maven download request in the error log. Reproduce the check and verify whether the dependency download is authenticated; done means the previous dependency resolves and the vulnerability comparison completes.

Written by the indexing model from the issue text.

Assessment

Tech stack
github-actions
Domain
ci-cd, devops
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.