From 56e7e519022874232a89b34423d157c6ecea9329 Mon Sep 17 00:00:00 2001 From: sushmitasshetty Date: Wed, 11 Feb 2026 15:00:59 +0530 Subject: [PATCH 1/4] Frogbotscanning --- .github/workflows/frogbot.yml | 37 +++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/frogbot.yml diff --git a/.github/workflows/frogbot.yml b/.github/workflows/frogbot.yml new file mode 100644 index 0000000000..7e77836664 --- /dev/null +++ b/.github/workflows/frogbot.yml @@ -0,0 +1,37 @@ +name: "Frogbot Security Scan" + +on: + # Triggers for every commit pushed to any branch + push: + # Triggers for all Pull Request activity (opened, updated, reopened) + pull_request: + types: [opened, synchronize, reopened] + # Allows manual triggers from the Actions tab + workflow_dispatch: + # Scheduled daily scan + schedule: + - cron: "0 0 * * *" + +permissions: + pull-requests: write + contents: write + security-events: write + +jobs: + frogbot-scan: + runs-on: ubuntu-latest + steps: + - uses: jfrog/frogbot@v2 + env: + # Connection Details + JF_URL: ${{ secrets.JF_URL }} + JF_ACCESS_TOKEN: ${{ secrets.JF_ACCESS_TOKEN }} + JF_GIT_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + # Project Specifics + JF_WORKING_DIR: "npm-example" + JF_INSTALL_DEPS_CMD: "npm install" + + # Dynamic Branch Context + # This tells Frogbot which branch is the "base" for the current run + JF_GIT_BASE_BRANCH: ${{ github.event.pull_request.base.ref || github.ref_name }} From b3e0a5264b3886ed6c15012948962f777c33ce91 Mon Sep 17 00:00:00 2001 From: sushmitasshetty Date: Wed, 11 Feb 2026 15:19:35 +0530 Subject: [PATCH 2/4] frogbot-testwith fail build --- .github/workflows/frogbot.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/frogbot.yml b/.github/workflows/frogbot.yml index 7e77836664..43eac1318f 100644 --- a/.github/workflows/frogbot.yml +++ b/.github/workflows/frogbot.yml @@ -6,7 +6,7 @@ on: # Triggers for all Pull Request activity (opened, updated, reopened) pull_request: types: [opened, synchronize, reopened] - # Allows manual triggers from the Actions tab + # Allows manual triggers from the Actions tab test workflow_dispatch: # Scheduled daily scan schedule: From 203ab4c8c93bfb0bc83cc4a75ae14915f732f11f Mon Sep 17 00:00:00 2001 From: sushmitasshetty Date: Wed, 11 Feb 2026 15:34:30 +0530 Subject: [PATCH 3/4] environment added --- .github/workflows/frogbot.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/frogbot.yml b/.github/workflows/frogbot.yml index 43eac1318f..25870c47ce 100644 --- a/.github/workflows/frogbot.yml +++ b/.github/workflows/frogbot.yml @@ -20,6 +20,7 @@ permissions: jobs: frogbot-scan: runs-on: ubuntu-latest + environment: frogbot steps: - uses: jfrog/frogbot@v2 env: From deaf71abd850a77a46de2c6568cc029e945a4365 Mon Sep 17 00:00:00 2001 From: sushmitasshetty Date: Wed, 11 Feb 2026 15:39:57 +0530 Subject: [PATCH 4/4] Update pull request trigger in frogbot.ymlcheck Change pull_request trigger to pull_request_target for better security context. --- .github/workflows/frogbot.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/frogbot.yml b/.github/workflows/frogbot.yml index 25870c47ce..80d837b750 100644 --- a/.github/workflows/frogbot.yml +++ b/.github/workflows/frogbot.yml @@ -4,7 +4,7 @@ on: # Triggers for every commit pushed to any branch push: # Triggers for all Pull Request activity (opened, updated, reopened) - pull_request: + pull_request_target: types: [opened, synchronize, reopened] # Allows manual triggers from the Actions tab test workflow_dispatch: @@ -16,6 +16,7 @@ permissions: pull-requests: write contents: write security-events: write + actions: read jobs: frogbot-scan: