Skip to content

Added shared workflow to build and scan an image#4

Merged
thomasm-ttd merged 10 commits into
mainfrom
tjm-UID2-577-nightly-scan-image
Feb 6, 2023
Merged

Added shared workflow to build and scan an image#4
thomasm-ttd merged 10 commits into
mainfrom
tjm-UID2-577-nightly-scan-image

Conversation

@thomasm-ttd

Copy link
Copy Markdown
Contributor

No description provided.

@scong-ttd scong-ttd left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@thomasm-ttd thomasm-ttd merged commit 4ae3859 into main Feb 6, 2023
@thomasm-ttd thomasm-ttd deleted the tjm-UID2-577-nightly-scan-image branch February 6, 2023 22:33
BehnamMozafari added a commit that referenced this pull request May 8, 2026
Addresses jon8787's review comments on PR #228:
- #2 verify step: attest_image now calls 'gh attestation verify' immediately
  after signing so misconfigured signatures fail at build time, not consumer
  pull time.
- #3 case sensitivity: lowercase the image ref once and reuse it for both
  signing and verifying. actions/attest@v4 already lowercases subject-name
  internally when push-to-registry is true (verified at the pinned commit
  59d8942 in src/main.ts and src/subject.ts), but 'gh attestation verify'
  does NOT lowercase the OCI URI we pass it; doing it ourselves keeps the
  signed name and the verified URI byte-identical.
- #4 NODE_OPTIONS comment: brief comment explaining why we mirror
  actions/attest-build-provenance's defensive HTTP header bump.
- #5 extract: pulled the attest+verify pair into a single composite action
  so the Java workflow and the non-Java composite action share one
  implementation.

Adds .github/workflows/test-attest-image.yaml: a manually-dispatched smoke
test that builds a throwaway image and exercises the full attest+verify
path. Use this whenever attest_image or actions/attest@v4 changes.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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