Skip to content

fix: recompile token audit and optimizer lock files#24543

Merged
lpcox merged 1 commit intomainfrom
fix/recompile-token-audit-lock
Apr 4, 2026
Merged

fix: recompile token audit and optimizer lock files#24543
lpcox merged 1 commit intomainfrom
fix/recompile-token-audit-lock

Conversation

@lpcox
Copy link
Copy Markdown
Collaborator

@lpcox lpcox commented Apr 4, 2026

Problem

The Daily Copilot Token Usage Audit workflow (run #23983965066) fails at the "Check workflow lock file" step with:

Lock file hash:    95d19131c6a686df72e2ad561b8d0760a8d7e4b53d3e216b7e877b6ce203c9fa
Recomputed hash:   f0b2ee01cf90f700233643d7c6ffa4db69067c18ed3516d0604f9b865b60187e
Status: ⚠️  Hashes differ
ERR_CONFIG: Lock file '.github/workflows/copilot-token-audit.lock.yml' is outdated!

Root Cause

PR #24535 updated both .md and .lock.yml files, but the lock files were compiled with a different gh-aw version, producing different heredoc delimiters and a mismatched frontmatter hash.

Fix

Recompile both lock files with the current gh-aw from main.

The lock files from PR #24535 were compiled with a different gh-aw
version, causing frontmatter hash mismatch. The CI 'Check workflow
lock file' step recomputes the hash from the .md source and compares
it against the hash stored in the .lock.yml metadata — they didn't
match, causing the Daily Copilot Token Usage Audit workflow to fail.

Fixes: https://github.com/github/gh-aw/actions/runs/23983965066

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings April 4, 2026 17:36
@lpcox lpcox merged commit 3aa6207 into main Apr 4, 2026
36 checks passed
@lpcox lpcox deleted the fix/recompile-token-audit-lock branch April 4, 2026 17:37
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the generated gh-aw workflow lock files so their frontmatter hashes match the versions compiled on main, fixing CI failures in the “Check workflow lock file” step.

Changes:

  • Recompiled .github/workflows/copilot-token-audit.lock.yml with current gh-aw to update the frontmatter_hash and regenerated heredoc delimiters.
  • Recompiled .github/workflows/copilot-token-optimizer.lock.yml with current gh-aw to update the frontmatter_hash and regenerated heredoc delimiters.
  • Normalized the gh aw --version check in both lock files to fully silence output when probing for availability.
Show a summary per file
File Description
.github/workflows/copilot-token-optimizer.lock.yml Regenerated lock content (hash + heredoc markers) and updated the gh aw --version probe redirection.
.github/workflows/copilot-token-audit.lock.yml Regenerated lock content (hash + heredoc markers) and updated the gh aw --version probe redirection.

Copilot's findings

Tip

Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

  • Files reviewed: 2/2 changed files
  • Comments generated: 0

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