{"id":18765785,"url":"https://github.com/andersonshatch/contrastwebgoat","last_synced_at":"2025-10-05T22:49:54.118Z","repository":{"id":43101092,"uuid":"315669508","full_name":"andersonshatch/ContrastWebGoat","owner":"andersonshatch","description":null,"archived":false,"fork":false,"pushed_at":"2022-08-30T11:07:46.000Z","size":81034,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-20T21:21:31.426Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/andersonshatch.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-11-24T15:11:53.000Z","updated_at":"2022-10-05T16:57:03.000Z","dependencies_parsed_at":"2023-01-16T17:30:35.528Z","dependency_job_id":null,"html_url":"https://github.com/andersonshatch/ContrastWebGoat","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/andersonshatch/ContrastWebGoat","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andersonshatch%2FContrastWebGoat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andersonshatch%2FContrastWebGoat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andersonshatch%2FContrastWebGoat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andersonshatch%2FContrastWebGoat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andersonshatch","download_url":"https://codeload.github.com/andersonshatch/ContrastWebGoat/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andersonshatch%2FContrastWebGoat/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278532356,"owners_count":26002346,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-05T02:00:06.059Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-07T18:35:11.531Z","updated_at":"2025-10-05T22:49:54.069Z","avatar_url":"https://github.com/andersonshatch.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Contrast + WebGoat + Docker / Docker Compose\n\nThis repo details a few different approaches you can use to add Contrast's Java agent to a Docker container, using WebGoat as a demo application.\n\nThe latest 3.x version of the Contrast Java agent is retrieved from Docker Hub at build time via [this line](https://github.com/andersonshatch/ContrastWebGoat/blob/main/Dockerfile#L5).\nOther available versions can be listed on [Docker Hub](https://hub.docker.com/r/contrast/agent-java/tags).\n\nThe `JAVA_TOOL_OPTIONS` variable is used in order to add the `-javaagent:contrast.jar` file to the JVM startup options, conditionally.\n\n## Setup\n1. Copy `contrast.env.tmpl` to `contrast.env` and then open it in your text editor.\n1. Fill in the connection details in `contrast.env`\n\n## Running with Docker locally\n1. Run `./docker-build.sh` to build the container\n1. Run `./docker-run.sh` to run the built container\n1. Answer y/n to the `Run with Contrast? [Y/N]` prompt\n\nWhen you answer yes, docker is invoked with the `contrast.env` file, so Contrast will be loaded.\n\nWhen you answer no, this environment file is not used and the application runs without Contrast.\n\n## Running with Docker Compose\n1. Run `./docker-compose-run.sh`\n1. Answer y/n to the `Run with Contrast? [Y/N]` prompt\n\nWhen you answer yes, docker-compose is invoked with the `contrast.env` file, so Contrast will be loaded.\n\nWhen you answer no, this environment file is not used and the application runs without Contrast.\n\n## Using WebGoat\n1. Visit [http://localhost:8888/WebGoat](http://localhost:8888/WebGoat)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandersonshatch%2Fcontrastwebgoat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandersonshatch%2Fcontrastwebgoat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandersonshatch%2Fcontrastwebgoat/lists"}