
http://localhost:8080 and use admin as the username and the password just displayed while running this commandSettings under Code and Automation Click on Actions then click on Runners Click on New self hosted runner then copy cammands according to your system. Once it’s running we are now a step ahead.DEFECTDOJO_URL and DEFECTDOJO_API_KEY as secrets. For that head over to your Repository Settings and under Security section click on Secret and Variables now Click on Actions and click on New Repository Secret and now Give a variable name DEFECTOJO_URL and paste the value as your defectdojo url and create new secret and give a variable name DEFECTOJO_TOKEN and paste the value from defect dojo you can find that heading over defect dojo dashboard and clicking on profile icon and clicking on API v2 key paste the token value over here.upload_to_defectdojo.py here’s the link of the file https://github.com/neetesshhr/defectdojo-actions/blob/main/upload_to_defectdojo.py/api/v2/import-scan/ this endpoint and uses arguments to pass the API keys, defect dojo url, engagement id, report file, scan type for importing or upload scan report to the file Let’s see what the arguments are and why we need in ?Products Create a New Product my clicking on the gear icon Fill in the required details and after that click submit. After that you created product click on the product you just created. Under product menu items click on Engagements . After that click on the Add new interactive engagments or either of one it must begin with Add so that we creating new engagements.http://localhost:8080/engagement/1 if the last digit is 1 then your engagement id is 1.evalution.py that will evaluate the test report and says our pipeline wether to pass or fail this utilizes /api/v2/findings/ api endpoints now let's get it going by supplying api key and host url as an arguments and also the product id.test.yaml file that will utilize these file and push to the defect dojo and evaluate. Here’s the link of the file https://github.com/neetesshhr/defectdojo-actions/blob/main/.github/workflows/test.yamlruns-on: value according to yours.false positive and click on the check box and also you can uncheck the Active option then click Finished there are other ways to convert into false positive also please explore that options.System Settings under System Settings section enable Deduplicate findings and Delete duplicates and we can set Max Duplicates to the desired value I have set 2 for now, scroll down and hit Submit.Posted Jul 28, 2025
Integrated DefectDojo with GitHub Actions for security testing.
0
1
Apr 10, 2025 - Apr 12, 2025