Skip to content

Set the token as an input#3

Merged
thomasm-ttd merged 1 commit into
mainfrom
tjm-UID2-577-set-token-as-input
Jan 31, 2023
Merged

Set the token as an input#3
thomasm-ttd merged 1 commit into
mainfrom
tjm-UID2-577-set-token-as-input

Conversation

@thomasm-ttd

Copy link
Copy Markdown
Contributor

No description provided.

@thomasm-ttd thomasm-ttd merged commit 7f3bcc4 into main Jan 31, 2023
@thomasm-ttd thomasm-ttd deleted the tjm-UID2-577-set-token-as-input branch January 31, 2023 22:57
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.

1 participant