{"id":30901906,"url":"https://github.com/ajgranowski/preceding-tag-action","last_synced_at":"2026-05-02T23:01:31.111Z","repository":{"id":312146077,"uuid":"1044892183","full_name":"AJGranowski/preceding-tag-action","owner":"AJGranowski","description":"Find the most recent tag that is reachable from a commit.","archived":false,"fork":false,"pushed_at":"2025-11-20T03:08:13.000Z","size":588,"stargazers_count":0,"open_issues_count":6,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-29T16:51:50.823Z","etag":null,"topics":["github","github-actions","github-api","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/AJGranowski.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-08-26T11:02:08.000Z","updated_at":"2025-09-30T01:36:24.000Z","dependencies_parsed_at":"2026-05-02T23:01:11.201Z","dependency_job_id":null,"html_url":"https://github.com/AJGranowski/preceding-tag-action","commit_stats":null,"previous_names":["ajgranowski/preceding-tag-action"],"tags_count":43,"template":false,"template_full_name":null,"purl":"pkg:github/AJGranowski/preceding-tag-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AJGranowski%2Fpreceding-tag-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AJGranowski%2Fpreceding-tag-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AJGranowski%2Fpreceding-tag-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AJGranowski%2Fpreceding-tag-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AJGranowski","download_url":"https://codeload.github.com/AJGranowski/preceding-tag-action/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AJGranowski%2Fpreceding-tag-action/sbom","scorecard":{"id":1238068,"data":{"date":"2025-09-24T06:33:15Z","repo":{"name":"github.com/AJGranowski/preceding-tag-action","commit":"a1d489d0c24fc070f2938c4a049b61f9946988ba"},"scorecard":{"version":"v5.2.1","commit":"ab2f6e92482462fe66246d9e32f642855a691dc1"},"score":7.8,"checks":[{"name":"Dependency-Update-Tool","score":10,"reason":"update tool detected","details":["Info: detected update tool: Dependabot: .github/dependabot.yml:1"],"documentation":{"short":"Determines if the project uses a dependency update tool.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#dependency-update-tool"}},{"name":"Code-Review","score":0,"reason":"Found 0/23 approved changesets -- score normalized to 0","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/ab2f6e92482462fe66246d9e32f642855a691dc1/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/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#binary-artifacts"}},{"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/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"project was created within the last 90 days. Please review its contents carefully","details":["Warn: Repository was created within the last 90 days."],"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#maintained"}},{"name":"Security-Policy","score":10,"reason":"security policy file detected","details":["Info: security policy file detected: SECURITY.md:1","Info: Found linked content: SECURITY.md:1","Info: Found disclosure, vulnerability, and/or timelines in security policy: SECURITY.md:1","Info: Found text in security policy: SECURITY.md:1"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#security-policy"}},{"name":"Token-Permissions","score":10,"reason":"GitHub workflow tokens follow principle of least privilege","details":["Warn: jobLevel 'contents' permission set to 'write': .github/workflows/cicd.yml:406","Info: topLevel 'contents' permission set to 'read': .github/workflows/cicd.yml:16","Info: topLevel 'contents' permission set to 'read': .github/workflows/dependency-review.yml:13","Info: topLevel 'contents' permission set to 'read': .github/workflows/fuzz-tests.yml:7","Info: topLevel 'contents' permission set to 'read': .github/workflows/integration-tests.yml:7","Info: topLevel 'contents' permission set to 'read': .github/workflows/regression-tests.yml:7","Info: topLevel permissions set to 'read-all': .github/workflows/scorecard.yml:18"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":10,"reason":"all dependencies are pinned","details":["Info:  29 out of  29 GitHub-owned GitHubAction dependencies pinned","Info:  26 out of  26 third-party GitHubAction dependencies pinned","Info:   1 out of   1 containerImage dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#pinned-dependencies"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#dangerous-workflow"}},{"name":"CII-Best-Practices","score":5,"reason":"badge detected: Passing","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#cii-best-practices"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE.md:0","Info: FSF or OSI recognized license: MIT License: LICENSE.md:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#license"}},{"name":"SAST","score":10,"reason":"SAST tool is run on all commits","details":["Info: all commits (26) are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#sast"}},{"name":"Fuzzing","score":10,"reason":"project is fuzzed","details":["Info: TypeScriptPropertyBasedTesting integration found: test/PrecedingTagAction.fuzz.test.ts:8"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#fuzzing"}},{"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/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#signed-releases"}},{"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/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#vulnerabilities"}},{"name":"Branch-Protection","score":8,"reason":"branch protection is not maximal on development and all release branches","details":["Info: 'allow deletion' disabled on branch 'main'","Info: 'force pushes' disabled on branch 'main'","Warn: 'branch protection settings apply to administrators' is disabled on branch 'main'","Info: 'stale review dismissal' is required to merge on branch 'main'","Warn: required approving review count is 1 on branch 'main'","Info: codeowner review is required on branch 'main'","Info: 'last push approval' is required to merge on branch 'main'","Info: 'up-to-date branches' is required to merge on branch 'main'","Info: status check found to merge onto on branch 'main'","Info: PRs are required in order to make changes on branch 'main'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#branch-protection"}},{"name":"Contributors","score":0,"reason":"project has 0 contributing companies or organizations -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project has a set of contributors from multiple organizations (e.g., companies).","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#contributors"}},{"name":"CI-Tests","score":10,"reason":"26 out of 26 merged PRs checked by a CI test -- score normalized to 10","details":null,"documentation":{"short":"Determines if the project runs tests before pull requests are merged.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#ci-tests"}}]},"last_synced_at":"2025-09-24T07:19:15.615Z","repository_id":312146077,"created_at":"2025-09-24T07:19:15.615Z","updated_at":"2025-09-24T07:19:15.615Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32552379,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-02T22:28:24.418Z","status":"ssl_error","status_checked_at":"2026-05-02T22:28:14.225Z","response_time":132,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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"}},"keywords":["github","github-actions","github-api","typescript"],"created_at":"2025-09-09T07:10:48.596Z","updated_at":"2026-05-02T23:01:31.105Z","avatar_url":"https://github.com/AJGranowski.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![CICD][cicd-badge]][cicd-link]\n[![Coverage Status][coverage-badge]][coverage-link]\n[![OpenSSF Scorecard][ossf-scorecard-badge]][ossf-scorecard-link]\n[![OpenSSF Best Practices][ossf-best-practices-badge]][ossf-best-practices-link]\n\n\u003cheader align=\"center\"\u003e\n    \u003ch1 align=\"center\"\u003ePreceding Tag Action\u003c/h1\u003e\n    \u003cp align=\"center\"\u003eFind the most recent tag that is reachable from a commit.\u003c/p\u003e\n\u003c/header\u003e\n\n## About\nThis action functions similar to [`git describe`][git-describe-link] by finding the most recent tag that is reachable from a commit. Since this action uses the GitHub API instead of a local Git database, you can use this action without `actions/checkout`!\n\n## Usage\n```yml\n- uses: AJGranowski/preceding-tag-action@▒▒▒▒▒▒▒▒▒▒▒▒▒ COMMIT SHA ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ # vX.Y.Z\n  id: preceding-tag\n\n- env:\n    PRECEDING_TAG: ${{ steps.preceding-tag.outputs.tag }}\n  run: |\n    echo \"Preceding tag: $PRECEDING_TAG\"\n```\n\n```yml\n- uses: AJGranowski/preceding-tag-action@▒▒▒▒▒▒▒▒▒▒▒▒▒ COMMIT SHA ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ # vX.Y.Z\n  id: preceding-release-tag\n  with:\n    regex: ^release-.+$\n\n- env:\n    PRECEDING_RELEASE_TAG: ${{ steps.preceding-release-tag.outputs.tag }}\n  run: |\n    echo \"Preceding release tag: $PRECEDING_RELEASE_TAG\"\n```\n\n\nAlthough this project publishes version tags, I strongly recommend [pinning this action to a full-length commit SHA][security-sha-pinning-link]. You can get the SHA of the latest release from the [latest release page][latest-release-link] by clicking the commit link, then and copying the SHA from the URL.\n\n## Inputs\n| Name          | Type    | Default                    | Description                                                                 |\n|---------------|---------|----------------------------|-----------------------------------------------------------------------------|\n| `repository`  | String  | `${{ github.repository }}` | Repository name with owner. For example, `AJGranowski/preceding-tag-action` |\n| `ref`         | String  | `${{ github.sha }}`        | The branch, tag, or SHA to find the preceding tag from.                     |\n| `regex`       | String  | `^.+$`                     | A regular expression used to filter candidate tag names.                    |\n| `default-tag` | String  | `​`                         | The default tag to return if no preceding tag was found.                    |\n| `include-ref` | Boolean | `false`                    | If true, include tags pointing to `ref` as candidates.                      |\n| `token`       | String  | `${{ github.token }}`      | Personal access token (PAT) used to fetch the tags.                         |\n\n## Outputs\n| Name        | Type    | Description                                                                            |\n|-------------|---------|----------------------------------------------------------------------------------------|\n| `tag`       | String  | The preceding tag, or `default-tag` if no preceding tag matching the filter was found. |\n| `tag-found` | Boolean | True if the preceding tag was found. False if the `default-tag` fallback was used.     |\n\n[cicd-badge]: https://github.com/AJGranowski/preceding-tag-action/actions/workflows/cicd.yml/badge.svg?branch=main\n[cicd-link]: https://github.com/AJGranowski/preceding-tag-action/actions/workflows/cicd.yml\n[coverage-badge]: https://coveralls.io/repos/github/AJGranowski/preceding-tag-action/badge.svg?branch=main\n[coverage-link]: https://coveralls.io/github/AJGranowski/preceding-tag-action?branch=main\n[git-describe-link]: https://git-scm.com/docs/git-describe\n[latest-release-link]: https://github.com/AJGranowski/preceding-tag-action/releases/latest\n[ossf-best-practices-badge]: https://www.bestpractices.dev/projects/11154/badge\n[ossf-best-practices-link]: https://www.bestpractices.dev/projects/11154\n[ossf-scorecard-badge]: https://api.securityscorecards.dev/projects/github.com/AJGranowski/preceding-tag-action/badge\n[ossf-scorecard-link]: https://securityscorecards.dev/viewer/?uri=github.com/AJGranowski/preceding-tag-action\n[security-sha-pinning-link]: https://docs.github.com/en/actions/reference/security/secure-use#using-third-party-actions","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fajgranowski%2Fpreceding-tag-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fajgranowski%2Fpreceding-tag-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fajgranowski%2Fpreceding-tag-action/lists"}