Push off formatted findings to JIRA.
- Get your findings into OFF format (see github.com/owasp/off)
go get github.com/jemurai/off2jira
- Set environment variables
off2jira off-file.json
Set your environment with:
- AUTOM8D_JIRA_SERVER - The Jira url. Eg.
jemurai.atlassian.net
. - AUTOM8D_JIRA_EMAIL - Your JIRA user email.
- AUTOM8D_JIRA_TOKEN - An API Token. See JIRA Documentation
- AUTOM8D_JIRA_PROJECT - The name of the JIRA Project to put the issue in.
- AUTOM8D_JIRA_ISSUE_TYPE (Optional, defaults to
Bug
)
See also the example_env.sh
file.
If you are doing this in a BitBucket Pipeline, see this documentation about setting variables.
off2jira works to follow golang best practices. Therefore, when updating, we need to do the following:
go get -u
go mod tidy
git commit -m "change with version"
git tag v1.0.6
git push origin v1.0.6
Run the build.sh and get the different types of artifacts and include them in the release.