- Parses the Jenkins plugin configuration to find
additionalArguments. - Extracts key flags such as
--formatand--failOnCVSS. - Emits a GitHub Actions step that runs the
dependency-check/Dependency-Check_Actionand uploads generated reports.
reports/, and uploads those artifacts.
Desired GitHub Actions step (excerpt)
additionalArguments (a multi-line string). Example:
additionalArguments
Transformer scaffolding and environment
Add or reuse your transformer (example filename:
ci-pipeline-transformer.rb). You can set up a runner and environment variables for the transformer runtime. Example runner/env config:
additionalArguments string, applies regular expressions to extract --format and --failOnCVSS, and builds the step hash for GitHub Actions. Defaults are applied if values are absent.
dependencyCheckPublisher can be omitted for GitHub Actions because the dependency-check action writes the reports directly. Return nil in the transformer to skip that identifier:

--format, --out, and --failOnCVSS settings from the with.args we provided.
Sample logs (trimmed):
--failOnCVSS threshold the process exits non-zero and the step fails. By adding continue-on-error: true to the dependency-check step, the job will continue and the upload-artifact step will still run so you can download the reports for inspection.
Example error when threshold is exceeded:
continue-on-error: true is set, the Upload Artifacts step still runs and uploads the reports for inspection.

Using
continue-on-error: true for the dependency-check step lets subsequent steps (for example, uploading artifacts) run even if dependency-check exits non-zero. If you prefer the job to fail on vulnerabilities, omit continue-on-error (or set it to false) and make the upload conditional (for example, if: failure() or use if: always() for unconditional uploads depending on your policy).- After merging the generated PR, your repository will contain the converted GitHub Actions workflow. The OWASP dependency check will run as a job, produce multiple report formats, and upload them as artifacts.
- To have the job fail on vulnerability findings, keep the required
--failOnCVSSvalue and removecontinue-on-error. - To always collect reports regardless of findings, keep
continue-on-error: trueand upload artifacts afterward. - The example transformer is intentionally simple: it extracts
--formatand--failOnCVSSand hard-codesproject,path, andout. Extend the transformer to pull additional parameters (project name, report directory, credentials, etc.) from other Jenkins arguments as needed.

additionalArguments, implement a custom transformer that emits a GitHub Actions step using dependency-check/Dependency-Check_Action@main, ensure reports are written to a defined out directory, and upload those reports as artifacts even if the scanner step flags vulnerabilities.