https://github.com/reload/dependency-check-jira
Run dependency-check and create Jira issues for new CVEs found
https://github.com/reload/dependency-check-jira
Last synced: 2 months ago
JSON representation
Run dependency-check and create Jira issues for new CVEs found
- Host: GitHub
- URL: https://github.com/reload/dependency-check-jira
- Owner: reload
- License: mit
- Created: 2020-01-06T13:43:07.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-04-12T04:21:18.000Z (about 1 year ago)
- Last Synced: 2024-04-12T12:02:17.326Z (about 1 year ago)
- Language: PHP
- Homepage:
- Size: 1.38 MB
- Stars: 2
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# dependency-check-jira
Runs [OWASP Dependency
Check](https://www.owasp.org/index.php/OWASP_Dependency_Check) using
the [CocoaPods
Analyser](https://jeremylong.github.io/DependencyCheck/analyzers/cocoapods.html)
and creates Jira tickets for any CVEs found.Uses [Reload Security Issue
library](https://github.com/reload/jira-security-issue), which
requires the following environment variables:- `JIRA_TOKEN`: A reference to the repo secret `JiraApiToken` (**REQUIRED**)
- `JIRA_HOST`: The endpoint for your Jira instance, e.g. https://foo.atlassian.net (**REQUIRED**)
- `JIRA_USER`: The ID of the Jira user which is associated with the 'JiraApiToken' secret, eg '[email protected]' (**REQUIRED**)
- `JIRA_PROJECT`: The project key for the Jira project where issues should be created, eg `TEST` or `ABC`. (**REQUIRED**)
- `JIRA_ISSUE_TYPE`: Type of issue to create, e.g. `Security`. Defaults to `Bug`. (*Optional*)
- `JIRA_WATCHERS`: Jira users to add as watchers to tickets. Separate
multiple watchers with comma (no spaces). (*Optional*)
- `JIRA_RESTRICTED_COMMENT_ROLE`: A comment with restricted visibility
to this role is posted with info about who was added as watchers to
the issue. Defaults to `Developers`. (*Optional*)## Options
Use `--dry-run` to run without actually creating issues, or
`--trial-run` to create a test issue in the given project.## Development
There's both Behat and PHPUnit tests.
The Behat tests are slow as they build the image (not that slow,
actually) and run it in dry-run mode, which runs `dependency-checker`
(very slow), but it tests both the image and that `checkdep` parses
actual `dependency-checker` output.PHPUnit tests are way faster, but only test specific parts.