Skip to content

Add Auto-Fix Command#1379

Open
orto17 wants to merge 3 commits into
jfrog:mainfrom
orto17:auto-fix-mode
Open

Add Auto-Fix Command#1379
orto17 wants to merge 3 commits into
jfrog:mainfrom
orto17:auto-fix-mode

Conversation

@orto17

@orto17 orto17 commented Jul 13, 2026

Copy link
Copy Markdown
Contributor
  • All tests passed. If this feature is not already covered by the tests, I added new tests.
  • This pull request is on the dev branch.
  • I used gofmt for formatting the code before submitting the pull request.
  • Update documentation about new features / new supported technologies

Adds auto-fix as a third Frogbot command mode alongside scan-pull-request and scan-repository.
Given a vulnerable component, affected version, and fix version, it locates the dependency descriptor via SBOM analysis, updates it using jfrog-cli-security package updaters, and opens a fix PR automatically.
Includes a dedicated autofix/action.yml subdirectory action and a frogbot-auto-fix.yml workflow template for easy integration via uses: jfrog/frogbot/autofix@v3.

- New `autofix` package: SBOM-based descriptor locator, dependency
  updater via jfrog-cli-security package updaters, git branch/commit/
  push via frogbot GitManager, VCS-agnostic PR creation via vcsclient
- Supports Maven, Npm, Pnpm, Go, Pip; technology inferred from PURL
- New `autofix/action.yml` subdirectory action (`uses: jfrog/frogbot/autofix@v3`)
  with dedicated inputs: component-name, affected-version, fix-version,
  branch-name, commit-hash
- New `.github/workflows/frogbot-auto-fix.yml` workflow_dispatch template
- Registered `auto-fix` (alias `af`) command in commands.go
- action/src/main.ts routes to execAutoFix() when command input is auto-fix

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@orto17 orto17 added the safe to test Approve running integration tests on a pull request label Jul 13, 2026
@github-actions github-actions Bot removed the safe to test Approve running integration tests on a pull request label Jul 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant