fix: recompile token audit and optimizer lock files#24543
Merged
Conversation
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>
Contributor
There was a problem hiding this comment.
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.ymlwith currentgh-awto update thefrontmatter_hashand regenerated heredoc delimiters. - Recompiled
.github/workflows/copilot-token-optimizer.lock.ymlwith currentgh-awto update thefrontmatter_hashand regenerated heredoc delimiters. - Normalized the
gh aw --versioncheck 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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The Daily Copilot Token Usage Audit workflow (run #23983965066) fails at the "Check workflow lock file" step with:
Root Cause
PR #24535 updated both
.mdand.lock.ymlfiles, but the lock files were compiled with a differentgh-awversion, producing different heredoc delimiters and a mismatched frontmatter hash.Fix
Recompile both lock files with the current
gh-awfrom main.