Fix TrustSignal verification API authentication: use x-api-key header#15
Merged
chrismaz11 merged 2 commits intomainfrom Mar 18, 2026
Merged
Conversation
…zation: Bearer Co-authored-by: chrismaz11 <24700273+chrismaz11@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix TrustSignal verification API key issue
Fix TrustSignal verification API authentication: use x-api-key header
Mar 18, 2026
There was a problem hiding this comment.
Pull request overview
This PR fixes TrustSignal verification client authentication by switching from an Authorization: Bearer ... header to the x-api-key header required by api.trustsignal.dev, preventing 403 Forbidden: invalid API key failures during verification.
Changes:
- Update
TrustSignalVerificationClientto sendx-api-keyinstead ofauthorization. - Update unit tests to assert
x-api-keyheader usage. - Fix the GitHub integration curl example to use
-H "x-api-key: ...".
Reviewed changes
Copilot reviewed 3 out of 4 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| src/trustsignal/client.ts | Sends API key via x-api-key header for verification requests |
| tests/trustsignalClient.test.ts | Updates mocked fetch header assertions to match new auth header |
| docs/integrations/github.md | Updates curl example to use x-api-key header |
| apps/action/dist/index.js | Rebuilt action bundle reflecting the header change |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The verification client was sending
Authorization: ****** but the TrustSignal API atapi.trustsignal.devexpectsx-api-key:, causing every verification attempt to fail with403 Forbidden: invalid API key`.Changes
src/trustsignal/client.ts— Replaceauthorization: ****** with"x-api-key": apiKey`tests/trustsignalClient.test.ts— Update all header assertions to expectx-api-keydocs/integrations/github.md— Correct the curl example to use-H "x-api-key: ${TRUSTSIGNAL_API_KEY}"apps/action/dist/index.js— Rebuilt bundle📱 Kick off Copilot coding agent tasks wherever you are with GitHub Mobile, available on iOS and Android.