Skip to content

Enforce the format of tags for releases#3

Merged
gh-worker-dd-mergequeue-cf854d[bot] merged 1 commit intomainfrom
jacobotb/K9VULN-10855/enforce-tag-version-format
Feb 20, 2026
Merged

Enforce the format of tags for releases#3
gh-worker-dd-mergequeue-cf854d[bot] merged 1 commit intomainfrom
jacobotb/K9VULN-10855/enforce-tag-version-format

Conversation

@jacobotb
Copy link
Copy Markdown
Collaborator

@jacobotb jacobotb commented Feb 20, 2026

Motivation

Currently, the release workflow will run on any tag. We want to, at the very least, enforce the format of tags as version numbers.

Changes

Changed the workflow to recognize two patterns and goreleaser to generate prerelease or final releases depending on the format.

Two tag formats are recognized:

  • vX.Y.Z -- for releases (where X, Y, Z are numbers)
  • vX.Y.Z-A -- for pre-releases (where X, Y, Z are numbers and A is anything)

Goreleaser is configured to mark as prerelease when the second format is used.

Author Checklist

  • I have reviewed my own PR.
  • I have added or updated relevant unit tests where necessary. If no tests are added, I've explained why.
  • All new and existing tests pass.
  • I have tested my changes on staging (if applicable).
  • I have updated any relevant documentation (if applicable).

QA Instruction

This PR was used to generate a release named v0.0.3-pre.1, which appears as a draft prerelease.

Blast Radius

What services will this change impact. Is it only DataDog IaC Scanner, internal services, the documentation or anything else?

Additional Notes

If you need to share anything else along with your PR, please do it here.

I submit this contribution under the Apache-2.0 license.

Two tag formats are recognized:

- vX.Y.Z   -- for releases (where X, Y, Z are numbers)
- vX.Y.Z-A -- for pre-releases (where X, Y, Z are numbers and A is anything)

Goreleaser is configured to mark as prerelease when the second format is used.
@jacobotb jacobotb requested a review from a team as a code owner February 20, 2026 14:08
@datadog-staging-us1-crawler-test
Copy link
Copy Markdown

✅ dbt Impact Preview

dbt Impact Preview (placeholder)

This is a test comment from the dbt-cicd provider.

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: 0419d29 | Docs | Datadog PR Page | Was this helpful? React with 👍/👎 or give us feedback!

@datadog-official

This comment has been minimized.

@gh-worker-dd-mergequeue-cf854d gh-worker-dd-mergequeue-cf854d bot merged commit 13bf0c8 into main Feb 20, 2026
24 checks passed
@gh-worker-dd-mergequeue-cf854d gh-worker-dd-mergequeue-cf854d bot deleted the jacobotb/K9VULN-10855/enforce-tag-version-format branch February 20, 2026 15:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants