Add CI guard to enforce workflow container digest parity with actions-lock pins#48039
Conversation
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
|
@copilot revert instructions changes |
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
This comment has been minimized.
This comment has been minimized.
🤖 PR Triage
Rationale: Adds a CI guard for container digest parity between workflow manifests and actions-lock pins. Single-file change to . Closes a real drift risk, but low urgency. DRAFT status — needs author to mark ready.
|
|
Hey
Once tests are added and the PR is ready, this should be good to go. Warning Firewall blocked 1 domainThe following domain was blocked by the firewall during workflow execution:
network:
allowed:
- defaults
- "patchdiff.githubusercontent.com"See Network Configuration for more information.
|
There was a problem hiding this comment.
Pull request overview
Adds CI validation to keep compiled workflow container pins aligned with the canonical actions lock.
Changes:
- Adds lock and pin files to CI path filters.
- Validates manifest digests and pinned image references.
- Reports missing or mismatched container pins.
Show a summary per file
| File | Description |
|---|---|
.github/workflows/ci.yml |
Adds container-pin parity validation and CI path coverage. |
Review details
Tip
Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Files reviewed: 1/1 changed files
- Comments generated: 4
- Review effort level: Medium
| - '.github/workflows/*.lock.yml' | ||
| - '.github/aw/actions-lock.json' |
| | to_entries[] | ||
| | select((.value.image + "@" + .value.digest) != .value.pinned_image) | ||
| | .key |
| if [ -z "$manifest_json" ]; then | ||
| continue | ||
| fi |
| checked_files=$((checked_files + 1)) | ||
| while IFS= read -r container; do |
|
🎉 This pull request is included in a new release. Release: |
This change adds a mechanical CI check to ensure container images referenced by compiled workflow manifests stay aligned with the digests declared in
.github/aw/actions-lock.json. It closes a gap where lock workflows could drift from the canonical container pin source without an explicit failure.Scope
validate-container-pinsjob to/home/runner/work/gh-aw/gh-aw/.github/workflows/ci.yml.Container pin consistency check
# gh-aw-manifestfrom each.github/workflows/*.lock.yml.digestandpinned_imageagainst.github/aw/actions-lock.json.pinned_imagevalues.Trigger coverage
.github/workflows/*.lock.yml.github/aw/actions-lock.json