Skip to content

Conversation

@jamiehankins
Copy link

  • Fix a panic in getPolicyIDFromMetadata by defensively handling nil or malformed metadata returned by conftest results, and add tests covering missing metadata and details cases.
  • Add go.mod/go.sum for module-based builds and testing.

This prevents action-conftest from crashing when policies emit results without metadata, especially when metrics are enabled.

This is for #8.

* Fix a panic in getPolicyIDFromMetadata by defensively handling nil or
  malformed metadata returned by conftest results, and add tests
  covering missing metadata and details cases.
* Add go.mod/go.sum for module-based builds and testing.

This prevents action-conftest from crashing when policies emit results
without metadata, especially when metrics are enabled.
@jamiehankins jamiehankins force-pushed the harden-metadata-handling branch from bbd30ec to ede8ff7 Compare December 9, 2025 03:08
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