Skip to content

Commit 1e8daa2

Browse files
committed
docs: document release info updater
1 parent c93b50f commit 1e8daa2

1 file changed

Lines changed: 30 additions & 1 deletion

File tree

docs/RELEASE.md

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,36 @@ just release-dry-run
5454

5555
### Updating ATT&CK Version Metadata
5656

57-
If releasing for a new ATT&CK version, update `LATEST_VERSION` in `mitreattack/release_info.py` before merging.
57+
If releasing for a new ATT&CK version, update `mitreattack-python/release_info.py` after the corresponding STIX releases are published:
58+
59+
- STIX 2.0 hashes come from [mitre/cti](https://github.com/mitre/cti/releases)
60+
- STIX 2.1 hashes come from [mitre-attack/attack-stix-data](https://github.com/mitre-attack/attack-stix-data/releases)
61+
62+
Preview the update first:
63+
64+
```bash
65+
uv run --extra dev python scripts/update_release_info.py 19.1 --dry-run
66+
```
67+
68+
Apply it:
69+
70+
```bash
71+
uv run --extra dev python scripts/update_release_info.py 19.1
72+
```
73+
74+
The updater refreshes:
75+
76+
- `LATEST_VERSION`
77+
- `STIX20["enterprise"]`, `STIX20["mobile"]`, `STIX20["ics"]`
78+
- `STIX21["enterprise"]`, `STIX21["mobile"]`, `STIX21["ics"]`
79+
80+
Then verify:
81+
82+
```bash
83+
uv run --extra dev ruff check scripts/update_release_info.py tests/test_release_info_updater.py mitreattack/release_info.py
84+
```
85+
86+
The GitHub release assets must exist before running the updater, so this step belongs after publishing and tagging [mitre/cti](https://github.com/mitre/cti) and [mitre-attack/attack-stix-data](https://github.com/mitre-attack/attack-stix-data).
5887

5988
## Notes
6089

0 commit comments

Comments
 (0)