Skip to content

[WIP] Fix failing GitHub Actions workflow for integration#16452

Merged
pelikhan merged 2 commits intomainfrom
copilot/fix-github-actions-workflow-05aa31ca-d04c-453c-93ab-36a00b7639e0
Feb 17, 2026
Merged

[WIP] Fix failing GitHub Actions workflow for integration#16452
pelikhan merged 2 commits intomainfrom
copilot/fix-github-actions-workflow-05aa31ca-d04c-453c-93ab-36a00b7639e0

Conversation

Copy link
Contributor

Copilot AI commented Feb 17, 2026

Fix failing Integration: Workflow String & Sanitization test

Root Cause

The TestValidationMessageFormat and other integration tests were creating lock files without the required metadata header. Lock files now require either:

  • New format: # gh-aw-metadata: {"schema_version":"v1"}
  • Legacy format: # frontmatter-hash: <64-char-hash>

Minimal Changes

  • Add metadata headers to lock files in TestValidationMessageFormat
  • Add metadata headers to lock files in TestActionUsageVersionPopulation
  • Add metadata headers to lock files in TestValidateActionSHAsInLockFile (both up-to-date and outdated scenarios)
  • Add metadata headers to lock files in TestMissingActionCache
  • Add metadata headers to lock files in TestExtractActionsFromRealLockFile
  • Run the specific failing test to verify the fix - ✅ PASS
  • Run integration tests matching CI pattern - ✅ PASS
  • Run full test suite to ensure no regressions
Original prompt

Fix the failing GitHub Actions workflow Integration: Workflow String & Sanitization
Analyze the workflow logs, identify the root cause of the failure, and implement a fix.
Job ID: 63926118531
Job URL: https://github.com/github/gh-aw/actions/runs/22116568757/job/63926118531


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
@pelikhan pelikhan marked this pull request as ready for review February 17, 2026 21:45
Copilot AI review requested due to automatic review settings February 17, 2026 21:45
@pelikhan pelikhan merged commit aef6bc5 into main Feb 17, 2026
2 checks passed
@pelikhan pelikhan deleted the copilot/fix-github-actions-workflow-05aa31ca-d04c-453c-93ab-36a00b7639e0 branch February 17, 2026 21:46
Copilot AI requested a review from pelikhan February 17, 2026 21:46
Copy link
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

This pull request fixes failing integration tests by adding the required gh-aw-metadata header to lock file test fixtures. Lock files now require either the new JSON metadata format (# gh-aw-metadata: {"schema_version":"v1"}) or the legacy frontmatter-hash format. The PR adds the minimal valid metadata header to all affected test cases in action_sha_checker_integration_test.go.

Changes:

  • Added # gh-aw-metadata: {"schema_version":"v1"} header to 6 lock file test fixtures in integration tests
  • Ensures lock file schema validation passes for all tests that use ExtractActionsFromLockFile or ValidateActionSHAsInLockFile

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

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.

3 participants