feat(gha): introduce utils/gha/annotations for GitHub Actions workflow annotations

- Add utils/gha/annotations.py with warning/error/notice helpers and *_each
  variants that emit one annotation per list item
- Use warning() in GHCRProvider._set_public for missing GHCR_PAT case
- Expose GHCR_PAT_SET env var in mirror step to distinguish missing-PAT from
  real API failures
- Add unit tests for all annotation functions

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
kevinveenbirkenbachandClaude Sonnet 4.6 committed 2026-04-08 10:59:46 +02:00
1 parent 312233aa42
commit 5e970ff5bd
6 files changed
+160

No files matched your search

@@ -156,6 +156,7 @@ jobs:
if: ${{ !(github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != github.repository) }}
env:
GITHUB_TOKEN: ${{ secrets.GHCR_PAT != '' && secrets.GHCR_PAT || secrets.GITHUB_TOKEN }}
GHCR_PAT_SET: ${{ secrets.GHCR_PAT != '' && 'true' || 'false' }}
shell: bash
run: |
set -euo pipefail