{"id":20838403,"url":"https://github.com/reload/drupal-security-jira","last_synced_at":"2025-07-04T05:02:09.026Z","repository":{"id":40945110,"uuid":"426537354","full_name":"reload/drupal-security-jira","owner":"reload","description":"Create Jira issues for insecure modules on a Drupal site","archived":false,"fork":false,"pushed_at":"2025-06-30T07:59:22.000Z","size":887,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"v2","last_synced_at":"2025-06-30T08:45:43.225Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/reload.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2021-11-10T08:12:39.000Z","updated_at":"2025-06-30T07:58:32.000Z","dependencies_parsed_at":"2023-10-02T05:24:23.847Z","dependency_job_id":"2de3d3c5-7f5f-423a-b043-4751da6f9daa","html_url":"https://github.com/reload/drupal-security-jira","commit_stats":{"total_commits":50,"total_committers":5,"mean_commits":10.0,"dds":"0.33999999999999997","last_synced_commit":"b2d5bc99cc71419c7dde3805d1cc29175a9d511b"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/reload/drupal-security-jira","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reload%2Fdrupal-security-jira","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reload%2Fdrupal-security-jira/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reload%2Fdrupal-security-jira/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reload%2Fdrupal-security-jira/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/reload","download_url":"https://codeload.github.com/reload/drupal-security-jira/tar.gz/refs/heads/v2","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reload%2Fdrupal-security-jira/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263449897,"owners_count":23468148,"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":[],"created_at":"2024-11-18T01:10:09.867Z","updated_at":"2025-07-04T05:02:09.000Z","avatar_url":"https://github.com/reload.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# drupal-security-jira\n\n\u003e [!Note]\n\u003e The `v2` version of this action is designed to work with the\n\u003e [Project Versions](https://www.drupal.org/project/project_versions)\n\u003e Drupal module.\n\u003e\n\u003e The legacy version that works with the [System Status\n\u003e module](https://www.drupal.org/project/system_status) can be found\n\u003e on the [main\n\u003e branch](https://github.com/reload/drupal-security-jira/tree/main).\n\nCreate JIRA tickets for security updates for projects used on a Drupal site.\n\nThis CLI tool compares modules, themes and core version used on a Drupal site\nwith information about projects, versions and security updates provided by\nDrupal.org.\n\nWhen a security update for a used module is detected a corresponding ticket is\ncreated in JIRA.\n\nThis tool can be run on as is but also provides integration with GitHub where it\ncan be run using actions.\n\nIf JIRA ticket for a security update already exists it will not be recreated.\n\n## Usage\n\n1. Install the project and its dependencies using Composer\n2. Configure the tool with environment variables or an `.env` file. The\n   following keys are supported:\n\n   - `DRUPAL_HOST`: The host name of the Drupal site to check, e.g. `reload.dk`\n     (**REQUIRED**)\n   - `URL_TOKEN`: The URL token used to retrieve data exposed by the\n     Project Versions module. See \u003chttps://example.com/admin/config/system/project-versions\u003e\n     (**REQUIRED**)\n   - `ENCRYPTION_KEY`: The key used to decrypt data exposed by the\n     Project Versions module (**REQUIRED**). See\n     \u003chttps://example.com/admin/config/system/project-versions\u003e\n   - `JIRA_HOST`: The endpoint for your JIRA instance, e.g.\n     \u003chttps://reload.atlassian.net\u003e (**REQUIRED**)\n   - `JIRA_USER`: The ID of the JIRA user which is associated with\n     `JIRA_TOKEN` e.g. '\u003csomeuser@reload.dk\u003e' (**REQUIRED**)\n   - `JIRA_PROJECT`: The project key for the Jira project where issues should be\n     created, e.g. `TEST` or `ABC`. (**REQUIRED**)\n   - `JIRA_ISSUE_TYPE`: Type of issue to create, e.g. `Security`. Defaults to\n     `Bug`. (*Optional*)\n   - `JIRA_WATCHERS`: JIRA users to add as watchers to tickets. Separate\n     multiple watchers with comma (no spaces).\n   - `JIRA_RESTRICTED_COMMENT_ROLE`: A comment with restricted visibility to\n     this role is posted with info about who was added as watchers to the issue.\n     Defaults to `Developers`. (*Optional*)\n   - `DRY_RUN`: Do not actually create any tickets but report that they would be\n     created. Defaults to `FALSE`. (*Optional*)\n\n3. Run `./bin/drupal-security-jira sync`\n\n## Setup on GitHub Actions\n\nYou need the following pieces:\n\n1. A Drupal site with the [Project Versions module](https://www.drupal.org/project/project_versions)\n   installed.\n2. Repository secrets containing site token, site key JIRA API token,\n   respectively.\n3. A workflow file which runs the action on a schedule, continually creating new\n   tickets when necessary.\n\n### Repo secrets\n\nThe `reload/github-security-jira` action requires you to\n[create three encrypted secrets](https://help.github.com/en/actions/automating-your-workflow-with-github-actions/creating-and-using-encrypted-secrets#creating-encrypted-secrets)\nin the repo:\n\n1. `JiraApiToken` containing an [API Token](https://confluence.atlassian.com/cloud/api-tokens-938839638.html)\n   for the JIRA user that should be used to create tickets.\n2. `PROJECT_VERSIONS_URL_TOKEN` from `/admin/config/system/project-versions`\n3. `PROJECT_VERSIONS_ENCRYPTION_KEY` from `/admin/config/system/project-versions`\n\n### Workflow file setup\n\nThe [GitHub workflow file](https://help.github.com/en/actions/automating-your-workflow-with-github-actions/configuring-a-workflow#creating-a-workflow-file)\nshould reside in any repo where you want to sync security alerts with Jira.\n\nHere is an example setup which runs this action every 6 hours and also\nexposes a `workflow_dispatch` event for manual triggering a run.\n\nThe manual run is useful to perform checks in between the 6 hour\nintervals in cases of very critical security issues and for testing\n(the dry run mode).\n\n```yaml\nname: Drupal Security Alerts for Jira\n\non:\n  workflow_dispatch:\n    inputs:\n      dry_run:\n        description: Dry run\n        required: true\n        default: \"1\"\n  schedule:\n    - cron: \"0 */6 * * *\"\n\njobs:\n  syncDrupalSecurityUpdates:\n    runs-on: ubuntu-latest\n    steps:\n      - name: \"Sync JIRA security issues from Drupal security updates\"\n        uses: reload/drupal-security-jira@v2\n        env:\n          DRUPAL_HOST: example.com\n          URL_TOKEN: ${{ secrets.PROJECT_VERSIONS_URL_TOKEN }}\n          ENCRYPTION_KEY: ${{ secrets.PROJECT_VERSIONS_ENCRYPTION_KEY }}\n          JIRA_TOKEN: ${{ secrets.JiraApiToken }}\n          JIRA_HOST: https://reload.atlassian.net\n          JIRA_USER: someone@reload.dk\n          JIRA_PROJECT: ABC\n          JIRA_ISSUE_TYPE: Security\n          JIRA_WATCHERS: customer@example.com,boss@example.com\n          DRY_RUN: ${{ github.event.inputs.dry_run || '0' }}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freload%2Fdrupal-security-jira","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Freload%2Fdrupal-security-jira","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freload%2Fdrupal-security-jira/lists"}