This is an intentionally vulnerable demo repository by Debricked that showcases common obstacles and risks related to open source dependencies. It demonstrates how our tool helps you analyze, detect, manage and remediate open source risks.
Note
This repository comes with a pre-configured GitHub Actions workflow located at .github/workflows/debricked.yml, but it is also possible to use your CI/CD tool of choice or download/clone the repository and scan it locally using the Debricked CLI. For more information on integrating with other tools, visit the documentation.
The easiest way to get set up is to simply fork or import this repository to your own GitHub account, making use of the existing GitHub Actions workflow.
If you've forked this repository, please note that GitHub disables running workflows by default. To enable them:
- Navigate to the Actions tab in your forked repository.
- Click the button labeled "I understand my workflows, go ahead and enable them".
This step is necessary for the workflows to run as expected.
To enable the dependency scans with GitHub actions, set up your Debricked Access Token as a GitHub secret:
- Generate an Access Token through the Debricked UI (instructions can be found here)
- Navigate to the repository on GitHub.
- Go to Settings > Secrets and variables > Actions.
- Click New repository secret.
- Name the secret
DEBRICKED_API_KEY
and paste your Access Token as the value.
Once the API key is configured, the workflow will automatically scan your repository for dependency issues on:
- Every push to any branch.
- Manually triggering the workflow
- .github/workflows/debricked.yml:
Contains the GitHub Actions workflow that triggers the Debricked dependency scan. - README.md:
This documentation file. - LICENSE:
The repository license. - web/:
Folder with code related to the frontend, using various vulnerable open source dependencies - src/:
Folder with code related to the backend, which is set up using a vulnerable version of the Spring Framework.
Contributions to improve this demo are welcome! Please open an issue or submit a pull request with your suggestions.
This repository is licensed under the MIT License. See the LICENSE file for more details.