{"id":7747319,"name":"KyMidd/ActionJiraCommitValidate","ecosystem":"actions","description":"I validate that a each commit message contains a leading, valid Jira ticket","homepage":"","licenses":null,"normalized_licenses":[],"repository_url":"https://github.com/KyMidd/ActionJiraCommitValidate","keywords_array":["github-action"],"namespace":"KyMidd","versions_count":3,"first_release_published_at":"2023-02-20T02:45:23.000Z","latest_release_published_at":"2023-09-19T16:14:11.000Z","latest_release_number":"v1.0.2","last_synced_at":"2026-06-19T01:32:00.193Z","created_at":"2023-05-17T11:22:26.331Z","updated_at":"2026-06-19T01:32:00.193Z","registry_url":"https://github.com/KyMidd/ActionJiraCommitValidate","install_command":null,"documentation_url":null,"metadata":{"name":"Check Commits for Jira","description":"I validate that a each commit message contains a leading, valid Jira ticket","inputs":{"jira-username":{"description":"Username used to poll Jira for ticket information","required":true},"jira-api-token":{"description":"API Token used to poll Jira for ticket information","required":true},"JIRA_URL":{"description":"URL of the Jira instance, e.g. https://foo.atlassian.net","required":true,"default":"https://foo.atlassian.net"},"BASE_BRANCH":{"description":"Base branch","required":true}},"runs":{"using":"composite","steps":[{"id":"trigger_jenkins_job_using_api","run":"#Parameters\njira_username=\"${{ inputs.jira-username }}\"\njira_api_token=\"${{ inputs.jira-api-token }}\"\nJIRA_URL=\"${{ inputs.JIRA_URL }}\"\nBASE_BRANCH=\"${{ inputs.BASE_BRANCH }}\"\n\n# Some commits don't have valid Jira ticket leads, like those built by whitesource or github\n# This list permits some commits to show as valid and not poll against Jira\ncommit_static_permit_list=\"(^Merge pull request \\#)|(^Merge( remote-tracking)? branch)|(^Add .whitesource configuration file)|(^Revert \\\")\"\n\n# Initialize invalidTicket as false, will be set to true by any non-exist tickets\ninvalidTicket=false\n\n# Find current branch name\nCURRENT_BRANCH=$(git branch | grep ^\\* | cut -d \"*\" -f 2 | cut -d \" \" -f 2)\n\n# Find hash of commit most common ancestor, e.g. where branch began\nBRANCH_MERGE_BASE=$(git merge-base ${BASE_BRANCH} ${CURRENT_BRANCH})\n\n# Find all commits since common ancestor\nBRANCH_COMMITS=$(git rev-list ${BRANCH_MERGE_BASE}..HEAD)\n\nwhile IFS= read -r commit; do\n  \n  # Check if ticket in static permit-list for non-Jira commit_sha\n  if $(git log --max-count=1 --format=%B $commit | grep -iqE \"$commit_static_permit_list\"); then\n    echo \"************\"\n    echo \"Commit message \\\"$(git log --max-count=1 --format=%B $commit)\\\" matches static permit-list and is valid, continuing\"\n    continue\n  fi\n  \n  # Filter commit message to just ticket at beginning\n  unset TICKET_TO_CHECK\n  TICKET_TO_CHECK=$(git log --max-count=1 --format=%B $commit | tr '[a-z]' '[A-Z]' | sed -nE 's/^([a-zA-Z0-9]{1,}-[0-9]{1,}).*$/\\1/p' | head -n 1)\n\n  # If line count is zero, couldn't find valid ticket number to check\n  if [[ $(echo \"$TICKET_TO_CHECK\" | awk 'NF' | wc -l) -eq 0 ]]; then\n    echo \"************\"\n    echo \"❌  Couldn't identify valid ticket number to check in commit\"\n    echo \"❌  Invalid commit message: \\\"$(git log --max-count=1 --format=%B $commit)\\\"\"\n    invalidTicket=true\n  else\n    # If valid ticket number found, check it\n    echo \"************\"\n    echo \"Checking if this ticket exists: $TICKET_TO_CHECK\"\n    \n    # Check if ticket exists\n    unset CURL\n    CURL=$(curl -s --url \"https://$JIRA_URL/rest/api/3/search?jql=key=${TICKET_TO_CHECK}\" --header 'Accept:application/json' --user ${jira_username}:${jira_api_token} 2\u003e\u00261)\n    if [[ \"$CURL\" == *\"Issue does not exist\"* ]]; then\n      echo \"❌  Ticket referenced in commit doesn't exist in Jira. You must use real Jira tickets at the start of commit messages\"\n      echo \"❌  Recognized ticket in commit: $TICKET_TO_CHECK\"\n      echo \"❌  Commit message: \\\"$(git log --max-count=1 --format=%B $commit)\\\"\"\n      echo \"❌  Hash: $commit\"\n      echo \"************\"\n      # Set this variable to trigger rejection if any commit fails regex\n      invalidTicket=true\n    else\n      echo \"Ticket $TICKET_TO_CHECK is valid\"\n    fi\n  fi\ndone \u003c\u003c\u003c $BRANCH_COMMITS\n\n# If any commit are invalid, print reject message\nif [[ \"$invalidTicket\" == true ]]; then\n    echo \"❌  Your push was rejected because at least one commit message on this branch is invalid\"\n    echo \"❌  Please fix the commit message(s) and push again.\"\n    echo \"❌  https://help.github.com/en/articles/changing-a-commit-message\"\n    echo \"************\"\n    exit 1\nelse\n    echo \"************\"\n    echo \"All commits are valid\"\n    echo \"************\"\n    exit 0\nfi\n","shell":"bash"}]},"branding":{"icon":"arrow-down-circle","color":"gray-dark"},"default_branch":"master","path":null},"repo_metadata":{"id":66406690,"uuid":"603955204","full_name":"KyMidd/ActionJiraCommitValidate","owner":"KyMidd","description":"A GitHub Action to validate all commit messages start with valid Jira ticket references","archived":false,"fork":false,"pushed_at":"2023-09-19T16:17:16.000Z","size":9,"stargazers_count":7,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-20T00:31:29.688Z","etag":null,"topics":["github-action"],"latest_commit_sha":null,"homepage":"","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/KyMidd.png","metadata":{},"created_at":"2023-02-20T02:40:29.000Z","updated_at":"2025-04-25T19:52:36.000Z","dependencies_parsed_at":"2023-05-31T11:31:06.114Z","dependency_job_id":null,"html_url":"https://github.com/KyMidd/ActionJiraCommitValidate","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/KyMidd/ActionJiraCommitValidate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KyMidd%2FActionJiraCommitValidate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KyMidd%2FActionJiraCommitValidate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KyMidd%2FActionJiraCommitValidate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KyMidd%2FActionJiraCommitValidate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/KyMidd","download_url":"https://codeload.github.com/KyMidd/ActionJiraCommitValidate/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KyMidd%2FActionJiraCommitValidate/sbom","scorecard":{"id":80998,"data":{"date":"2025-08-11","repo":{"name":"github.com/KyMidd/ActionJiraCommitValidate","commit":"a35fef69559249adf4d0dcffa97a95d254db2ab0"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.1,"checks":[{"name":"Code-Review","score":4,"reason":"Found 2/5 approved changesets -- score normalized to 4","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 5 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-15T05:51:25.428Z","repository_id":66406690,"created_at":"2025-08-15T05:51:25.428Z","updated_at":"2025-08-15T05:51:25.428Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":276023811,"owners_count":25571956,"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","status":"online","status_checked_at":"2025-09-19T02:00:09.700Z","response_time":108,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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"},"owner_record":{"login":"KyMidd","name":"Kyler Middleton","uuid":"13367556","kind":"user","description":"DevNetSecOps, DevRel, cloud security chick. I will teach you, it's unavoidable. She/Her 🏳️‍🌈, INFJ-A, support the EFF!","email":"","website":"https://kyler.omg.lol","location":"USA","twitter":null,"company":null,"icon_url":"https://avatars.githubusercontent.com/u/13367556?u=8bcaf7aadc7951fa901dfdd12f81a410d8f1dfc6\u0026v=4","repositories_count":6,"last_synced_at":"2025-09-19T23:29:52.442Z","metadata":{"has_sponsors_listing":true,"funding":{"github":["kymidd"],"ko_fi":"kymidd"}},"html_url":"https://github.com/KyMidd","funding_links":["https://github.com/sponsors/kymidd","https://ko-fi.com/kymidd"],"total_stars":null,"followers":219,"following":67,"created_at":"2023-02-20T03:30:11.752Z","updated_at":"2025-09-19T23:29:52.442Z","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/KyMidd","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/KyMidd/repositories"},"tags":[{"name":"v1.0.2","sha":"a35fef69559249adf4d0dcffa97a95d254db2ab0","kind":"commit","published_at":"2023-09-19T16:14:11.000Z","download_url":"https://codeload.github.com/KyMidd/ActionJiraCommitValidate/tar.gz/v1.0.2","html_url":"https://github.com/KyMidd/ActionJiraCommitValidate/releases/tag/v1.0.2","dependencies_parsed_at":"2023-09-21T05:13:03.124Z","dependency_job_id":null,"purl":"pkg:github/KyMidd/ActionJiraCommitValidate@v1.0.2","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KyMidd%2FActionJiraCommitValidate/tags/v1.0.2","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KyMidd%2FActionJiraCommitValidate/tags/v1.0.2/manifests"},{"name":"v1","sha":"1f686e45d68ae262e0431fa0931046585e2f7d79","kind":"commit","published_at":"2023-02-20T02:56:03.000Z","download_url":"https://codeload.github.com/KyMidd/ActionJiraCommitValidate/tar.gz/v1","html_url":"https://github.com/KyMidd/ActionJiraCommitValidate/releases/tag/v1","dependencies_parsed_at":"2023-06-02T00:41:00.797Z","dependency_job_id":null,"purl":"pkg:github/KyMidd/ActionJiraCommitValidate@v1","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KyMidd%2FActionJiraCommitValidate/tags/v1","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KyMidd%2FActionJiraCommitValidate/tags/v1/manifests"},{"name":"v1.0.1","sha":"1575c4c8c4fb6f21bfe2e578a23e1d7c23d3b5e2","kind":"commit","published_at":"2023-02-20T02:45:23.000Z","download_url":"https://codeload.github.com/KyMidd/ActionJiraCommitValidate/tar.gz/v1.0.1","html_url":"https://github.com/KyMidd/ActionJiraCommitValidate/releases/tag/v1.0.1","dependencies_parsed_at":"2023-06-02T00:41:01.076Z","dependency_job_id":null,"purl":"pkg:github/KyMidd/ActionJiraCommitValidate@v1.0.1","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KyMidd%2FActionJiraCommitValidate/tags/v1.0.1","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KyMidd%2FActionJiraCommitValidate/tags/v1.0.1/manifests"}]},"repo_metadata_updated_at":"2025-09-21T14:09:18.784Z","dependent_packages_count":0,"downloads":null,"downloads_period":null,"dependent_repos_count":0,"rankings":{"downloads":null,"dependent_repos_count":40.26221692491061,"dependent_packages_count":0.0,"stargazers_count":27.664104867418573,"forks_count":35.22640316731543,"docker_downloads_count":null,"average":25.788181239911154},"purl":"pkg:githubactions/KyMidd/ActionJiraCommitValidate","advisories":[],"docker_usage_url":"https://docker.ecosyste.ms/usage/actions/KyMidd/ActionJiraCommitValidate","docker_dependents_count":null,"docker_downloads_count":null,"usage_url":"https://repos.ecosyste.ms/usage/actions/KyMidd/ActionJiraCommitValidate","dependent_repositories_url":"https://repos.ecosyste.ms/api/v1/usage/actions/KyMidd/ActionJiraCommitValidate/dependencies","status":null,"funding_links":["https://github.com/sponsors/KyMidd"],"critical":null,"issue_metadata":{"last_synced_at":null,"issues_count":null,"pull_requests_count":null,"avg_time_to_close_issue":null,"avg_time_to_close_pull_request":null,"issues_closed_count":null,"pull_requests_closed_count":null,"pull_request_authors_count":null,"issue_authors_count":null,"avg_comments_per_issue":null,"avg_comments_per_pull_request":null,"merged_pull_requests_count":null,"bot_issues_count":null,"bot_pull_requests_count":null,"past_year_issues_count":null,"past_year_pull_requests_count":null,"past_year_avg_time_to_close_issue":null,"past_year_avg_time_to_close_pull_request":null,"past_year_issues_closed_count":null,"past_year_pull_requests_closed_count":null,"past_year_pull_request_authors_count":null,"past_year_issue_authors_count":null,"past_year_avg_comments_per_issue":null,"past_year_avg_comments_per_pull_request":null,"past_year_bot_issues_count":null,"past_year_bot_pull_requests_count":null,"past_year_merged_pull_requests_count":null,"issues_url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/repositories/KyMidd%2FActionJiraCommitValidate/issues","maintainers":[],"active_maintainers":[]},"versions_url":"https://packages.ecosyste.ms/api/v1/registries/github%20actions/packages/KyMidd%2FActionJiraCommitValidate/versions","version_numbers_url":"https://packages.ecosyste.ms/api/v1/registries/github%20actions/packages/KyMidd%2FActionJiraCommitValidate/version_numbers","latest_version_url":"https://packages.ecosyste.ms/api/v1/registries/github%20actions/packages/KyMidd%2FActionJiraCommitValidate/latest_version","dependent_packages_url":"https://packages.ecosyste.ms/api/v1/registries/github%20actions/packages/KyMidd%2FActionJiraCommitValidate/dependent_packages","related_packages_url":"https://packages.ecosyste.ms/api/v1/registries/github%20actions/packages/KyMidd%2FActionJiraCommitValidate/related_packages","codemeta_url":"https://packages.ecosyste.ms/api/v1/registries/github%20actions/packages/KyMidd%2FActionJiraCommitValidate/codemeta","maintainers":[]}