frogbot icon indicating copy to clipboard operation
frogbot copied to clipboard

[Urgent] : Use frogbot-config.yml in Project

Open AdityaHitachi opened this issue 2 years ago • 9 comments

I want to use the frogbot-config.yml file in my project. I am calling this step in my GitHub Actions pull request workflow, but it's not taking that config file.

- name: FrogBot
  uses: jfrog/[email protected]
  env:
    JF_URL: ***
    JF_ACCESS_TOKEN: ***
    JF_GIT_TOKEN: ***
    JF_FAIL: "FALSE"

I have placed the 'frogbot-config.yml' file at the root of my project under the '.frogbot' directory like this .frogbot/frogbot-config.yml

AdityaHitachi avatar Dec 06 '23 14:12 AdityaHitachi

Hi @AdityaHitachi, thank you for reporting this issue and using Frogbot. We have recently fixed a bug related to the frogbot-config.yml. Therefore, I highly recommend upgrading Frogbot to the latest version initially. If the issue persists even after the upgrade, please provide the debug logs generated while running Frogbot for further investigation. To enable the debug logs, kindly add the JFROG_CLI_LOG_LEVEL environment variable and set it to DEBUG. Awaiting your feedback, please let me know if you require any additional assistance.

omerzi avatar Dec 06 '23 14:12 omerzi

Hi @AdityaHitachi, thank you for reporting this issue and using Frogbot. We have recently fixed a bug related to the frogbot-config.yml. Therefore, I highly recommend upgrading Frogbot to the latest version initially. If the issue persists even after the upgrade, please provide the debug logs generated while running Frogbot for further investigation. To enable the debug logs, kindly add the JFROG_CLI_LOG_LEVEL environment variable and set it to DEBUG. Awaiting your feedback, please let me know if you require any additional assistance.

Does frogbot-config.yml need to be in target branch also ?

AdityaHitachi avatar Dec 06 '23 14:12 AdityaHitachi

@AdityaHitachi, yes, as documented here: https://docs.jfrog-applications.jfrog.io/jfrog-applications/frogbot/setup-frogbot/frogbot-configuration#where-should-the-frogbot-config.yml-file-be-placed-in-the-repository

omerzi avatar Dec 06 '23 14:12 omerzi

@AdityaHitachi, yes, as documented here: https://docs.jfrog-applications.jfrog.io/jfrog-applications/frogbot/setup-frogbot/frogbot-configuration#where-should-the-frogbot-config.yml-file-be-placed-in-the-repository

I am working on a Maven project with multiple subfolders. When creating a pull request to the target branch, I want to scan a specific new submodule each time. I have a file of this type in my source repository.

- params:
    git:
      branches:
      - testing-patch1
      repoName: my-test-project
    scan:
      projects:
      - workingDirs:
        - ./submodule1
        - ./submodule2

However, Frogbot is not recognizing or taking this file into account from my source branch.

AdityaHitachi avatar Dec 06 '23 14:12 AdityaHitachi

@AdityaHitachi , could you please attach the debug logs? They would assist us in further investigating the issue.

omerzi avatar Dec 06 '23 15:12 omerzi

@AdityaHitachi , could you please attach the debug logs? They would assist us in further investigating the issue.

Can you please tell me how the configuration file works with pull_request targetor pull_request? Does the configuration only work with pull_request_target?" Also, for pull_request target, if I have a configuration file in both the target and source branches with different work directories in both files, which file does Frogbot file have to take..

AdityaHitachi avatar Dec 06 '23 17:12 AdityaHitachi

@AdityaHitachi , could you please attach the debug logs? They would assist us in further investigating the issue.

I have running workflow as event type pull_request target and having config file in source repository. but its not picking up that file. Here is the log

image

AdityaHitachi avatar Dec 07 '23 10:12 AdityaHitachi

Even though I specified version 2.10.0, is Frogbot still picking up the latest version? I'm unsure why this is happening. We want to use the specified version of Frogbot

image

AdityaHitachi avatar Dec 11 '23 14:12 AdityaHitachi

@AdityaHitachi 2.10.0 is the version of the Frogbot GitHub Action. We recommend using v2. To select the Frogbot version you can set the specific version in the "version" argument:

- name: Frogbot
  uses: jfrog/frogbot@v2
  env:
    JF_URL: ***
    JF_ACCESS_TOKEN: ***
    JF_GIT_TOKEN: ***
    JF_FAIL: "FALSE"
  with:
    version: 2.19.4

yahavi avatar Dec 11 '23 15:12 yahavi

Hello @AdityaHitachi. Hope the answer provided by @yahavi and @omerzi helped resolve your issue. As mentioned before, we had some issue with frogbot-config.yml, but they were fixed in newer version. Please try this again, and if you still experience any issue, I'd suggest opening a new GitHub issue so it will be at the top of the page and we can address it as soon as possible

eranturgeman avatar Aug 01 '24 11:08 eranturgeman