I'm using the Security feature (Security Containers), connecting Jira to Dependabot alerts, and automatically creating tickets when Dependabot detects a new vulnerability. The problem is that I can't get the repository name to use as a title or tag on my Jira ticket.
The variables I can use are the following and none of them give me the name of the github repository:
I'm also trying to use the "Split", but when I add it to my automation, it doesn't work, and I get an error when trying to create the ticket:
vulnerability.url= https://github.com/Zubale/scheduled-tasks/security/dependabot/1
{{vulnerability.url.split("/")[4]}}
So I'm trying to get the repository name: scheduled-tasks
Automation:
Error:
Then you need to create a variable.
The variable should result in the name of the repository from the url
Do a log action to check the variable output and use the variable in the issue creation, place the variable in the description field.
clause for in variable creation:
{{vulnerability.url.substringAfter("Zuable/").substringBefore("/")}}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Welcome to the community.
How are the Jira issues created, I suspect via the API.
These variables, are they from Dependabot?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am using the Security feature and the "Connect Security Containers" option.
This causes the Dependabot vulnerability alerts to appear in this section. Then, I have an automation that creates the ticket in the Jira project. This is where I try to get the repository name, which I haven't been able to achieve.
I can't find a variable that gives me the name of the Dependabot repository.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Based on the documentation, there is no such an option.
See, jira-smart-values-security
You can raise a feature request via https://jira.atlassian.com/secure/Dashboard.jspa
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.