{"id":22675032,"url":"https://github.com/orfium/critical-dependabot-jira","last_synced_at":"2025-04-19T19:50:37.775Z","repository":{"id":63566634,"uuid":"565800353","full_name":"Orfium/critical-dependabot-jira","owner":"Orfium","description":"Create a jira ticket of type bug when a dependabot with big impact is created.","archived":false,"fork":false,"pushed_at":"2023-09-25T00:36:24.000Z","size":10,"stargazers_count":4,"open_issues_count":3,"forks_count":0,"subscribers_count":7,"default_branch":"main","last_synced_at":"2025-03-29T12:28:28.562Z","etag":null,"topics":["missing-codeowners"],"latest_commit_sha":null,"homepage":null,"language":null,"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/Orfium.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-11-14T10:59:18.000Z","updated_at":"2025-03-29T05:09:48.000Z","dependencies_parsed_at":"2025-03-29T12:37:26.306Z","dependency_job_id":null,"html_url":"https://github.com/Orfium/critical-dependabot-jira","commit_stats":{"total_commits":2,"total_committers":2,"mean_commits":1.0,"dds":0.5,"last_synced_commit":"d414d3261a0ba6d691471e375789bde1ac57ca62"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Orfium%2Fcritical-dependabot-jira","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Orfium%2Fcritical-dependabot-jira/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Orfium%2Fcritical-dependabot-jira/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Orfium%2Fcritical-dependabot-jira/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Orfium","download_url":"https://codeload.github.com/Orfium/critical-dependabot-jira/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249785888,"owners_count":21325559,"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","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":["missing-codeowners"],"created_at":"2024-12-09T17:24:15.392Z","updated_at":"2025-04-19T19:50:37.757Z","avatar_url":"https://github.com/Orfium.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Critical Dependabot Jira\nCreate a jira ticket of issue type **Bug** when a critical dependabot pull request is created in the repository. \\\nCriticality can be configured by setting a CVSS threshold.\n\n# Usage\nSee [action.yml](https://github.com/Orfium/critical-dependabot-jira/blob/master/action.yml).\n\n## Inputs\nThe action needs a series of inputs to be set in order to function properly.\n\n| Item            | Description                                                                                                                        | Default             |\n|-----------------|------------------------------------------------------------------------------------------------------------------------------------|---------------------|\n| jira_base_url   | The base url of jira.                                                                                                              | -                   |\n| jira_user_email | The email of jira user to open the bug.                                                                                            | -                   |\n| jira_project    | The jira project **key** that the bug will be opened.                                                                              | -                   |\n| jira_issue_type | The jira ticket issue type.                                                                                                        | Bug                 |\n| jira_label      | The jira ticket label.                                                                                                             | dependabot-critical |\n| cvss_threshold  | The [CVSS](https://en.wikipedia.org/wiki/Common_Vulnerability_Scoring_System) threshold that you want to trigger the bug creation. | 9.0                 |\n\n### Secrets needed\nThe repository needs two secrets, the `pat_token` which is a\n[Github Access Token](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token)\nwith the `repo.public_repo` scope if it is a public repository or all scopes under `repo` for private repositories\n and the `jira_api_token` which is a [Jira API Token](https://id.atlassian.com/manage-profile/security/api-tokens).\n\n## Outputs\nNothing to output.\n\n## Example of usage\nThe composite action is called inside a pull request only when it is opened. Also, the PR's actor should be dependabot. \\\nExample snippet:\n\n```\non:\n  pull_request:\n    types:\n      - opened\n\njobs:\n  critical-jira-creator:\n    runs-on: ubuntu-latest\n    if: ${{ github.event.pull_request.user.login == 'dependabot[bot]' }}\n    steps:\n      - name: Checkout Repository\n        uses: actions/checkout@v3.1.0\n      - name: Create jira ticket\n        uses: Orfium/critical-dependabot-jira@test\n        with:\n          pat_token: ${{ secrets.PAT_TOKEN }}\n          jira_base_url: ${{ secrets.JIRA_BASE_URL }}\n          jira_user_email: ${{ secrets.JIRA_USER_EMAIL }}\n          jira_api_token: ${{ secrets.JIRA_API_TOKEN }}\n          jira_project: 'ADR'\n          cvss_threshold: 5.0\n```\nOne can also change the CVSS threshold to his/her liking.\nAs the PR is opened from dependabot, it is crucial to set the secrets under Dependabot in Secrets sidebar. More information can be found [here](https://github.blog/changelog/2021-11-30-github-actions-workflows-triggered-by-dependabot-receive-dependabot-secrets/).\n\n# Important note\nIt is best to enable the setting that allows dependabot to create pull requests regarding security updates automatically. Reference link: [Configuring Dependabot security updates\n](https://docs.github.com/en/code-security/dependabot/dependabot-security-updates/configuring-dependabot-security-updates).\n\n# Known issues\nWhen running this GitHub action, there are some warnings and errors that you might face:\n- You get a `Logged in as: undefined`, when the GitHub action tries to log in to your jira user. This is a known and non-stopper issue that it is described here: [GitHub Issue](https://github.com/atlassian/gajira-login/issues/30).\n- `set-output` is deprecated. We will wait for its fix.\n\n# Contributions\nSpecial thanks to [@le4ker](https://github.com/le4ker) for his contribution.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forfium%2Fcritical-dependabot-jira","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Forfium%2Fcritical-dependabot-jira","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forfium%2Fcritical-dependabot-jira/lists"}