Skip to content

Include gh-aw-detection version in generated aw_info metadata#41122

Closed
Copilot wants to merge 2 commits into
mainfrom
copilot/update-aw-info-json-version
Closed

Include gh-aw-detection version in generated aw_info metadata#41122
Copilot wants to merge 2 commits into
mainfrom
copilot/update-aw-info-json-version

Conversation

Copilot AI commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

This updates aw_info.json to carry the gh-aw-detection binary version so downstream telemetry/reporting can distinguish detector runtime versions. The version is now propagated from workflow generation into runtime metadata.

  • aw_info payload extension

    • Added detection_version to actions/setup/js/generate_aw_info.cjs.
    • Value is sourced from GH_AW_INFO_DETECTION_VERSION.
  • Compiler env wiring

    • Updated pkg/workflow/compiler_yaml.go to emit GH_AW_INFO_DETECTION_VERSION in the generate_aw_info step env block.
    • Value is set to DefaultThreatDetectVersion when features.gh-aw-detection is enabled, otherwise empty.
  • Coverage updates

    • Extended JS and Go tests to assert the new metadata field and env emission behavior.
    • Refreshed affected wasm golden fixtures due to generated env changes.
const awInfo = {
  // ...
  awf_version: process.env.GH_AW_INFO_AWF_VERSION || "",
  awmg_version: process.env.GH_AW_INFO_AWMG_VERSION || "",
  detection_version: process.env.GH_AW_INFO_DETECTION_VERSION || "",
};

Copilot AI and others added 2 commits June 23, 2026 22:42
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title Include gh-aw-detection version in generated aw_info.json Include gh-aw-detection version in generated aw_info metadata Jun 23, 2026
Copilot AI requested a review from pelikhan June 23, 2026 22:53
@pelikhan pelikhan closed this Jun 24, 2026
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