Skip to content

feat: CI check annotated tags in PR range - #11

Merged
mose-zm merged 1 commit into
mainfrom
feat/ci-tag-check
Jul 28, 2026
Merged

feat: CI check annotated tags in PR range#11
mose-zm merged 1 commit into
mainfrom
feat/ci-tag-check

Conversation

@mose-zm

@mose-zm mose-zm commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

Adds a CI step to commit-lint.yml that scans annotated tags whose target commit is in the PR range, enforcing:

  • tagger email in [identities]
  • tag message ASCII-only
  • tag message contains no [forbidden_tokens]

Why

git push --no-verify bypasses the local pre-push validate_tag check. This step is the CI backstop for that gap on annotated tags pushed within a PR.

Lightweight tags are skipped here -- they have no tagger field and no message; their pointed-to commit identity is already covered by the existing commit scan step.

Scope

  • Triggered only on PRs (existing if: github.event_name == pull_request guard applies).
  • Only tags whose *objectname (target commit) falls in BASE..HEAD are checked; pre-existing tags outside the PR range are ignored.
  • Step uses if: success() || failure() so it runs even if the commit scan step failed -- both failures are reported in one run.

- scan tags targeting PR commits
- tagger email in [identities]
- tag message ASCII + no forbidden tokens
- backstop for --no-verify bypass
@mose-zm
mose-zm merged commit 0da420d into main Jul 28, 2026
1 check passed
@mose-zm
mose-zm deleted the feat/ci-tag-check branch July 28, 2026 08:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant