Skip to content

chore: automate release info updates#233

Merged
jondricek merged 4 commits intomainfrom
automate-release-info-update
May 8, 2026
Merged

chore: automate release info updates#233
jondricek merged 4 commits intomainfrom
automate-release-info-update

Conversation

@scotluns
Copy link
Copy Markdown
Contributor

Why

Release prep currently requires manually copying the latest ATT&CK version and six STIX SHA256 hashes into release_info.py. This adds a small updater so maintainers can refresh that metadata directly from the authoritative GitHub releases.

What Changed

  • Added a release info updater that fetches STIX 2.0 hashes from mitre/cti and STIX 2.1 hashes from mitre-attack/attack-stix-data.
  • Rewrites LATEST_VERSION, STIX20, and STIX21 via AST-backed source replacement, then runs Ruff formatting.
  • Added tests for source rewriting and release asset name matching.

How To Verify

  • uv run --extra dev ruff check scripts/update_release_info.py tests/test_release_info_updater.py mitreattack/release_info.py
  • uv run --extra dev pytest tests/test_release_info_updater.py
  • Verified v19.0 hash fetch restores the current release_info.py contents after simulating stale v18.1 metadata.

@scotluns scotluns requested a review from jondricek April 28, 2026 15:01
@scotluns scotluns self-assigned this Apr 28, 2026
@jondricek jondricek force-pushed the automate-release-info-update branch from e176e57 to f889f4e Compare May 8, 2026 15:22
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented May 8, 2026

@jondricek jondricek merged commit c93b50f into main May 8, 2026
4 checks passed
@jondricek jondricek deleted the automate-release-info-update branch May 8, 2026 16:47
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.

2 participants