Skip to content

Custom user-agent string for storage record API reqs - #2321

Merged
bdehamer merged 2 commits into
mainfrom
bdehamer/storage-record-orchestration-id
Feb 26, 2026
Merged

bdehamer merged 2 commits into
mainfrom
bdehamer/storage-record-orchestration-id

Conversation

@bdehamer

Copy link
Copy Markdown
Contributor

This pull request updates the @actions/attest package to enhance the user agent string sent with requests to the storage record API.

Follow-up to #2320. Follows the pattern for including the ACTIONS_ORCHESTRATION_ID value in the user agent string introduced in #2229

@bdehamer
bdehamer requested a review from a team as a code owner February 25, 2026 23:34
Copilot AI review requested due to automatic review settings February 25, 2026 23:34
Signed-off-by: Brian DeHamer <bdehamer@github.com>
@bdehamer
bdehamer force-pushed the bdehamer/storage-record-orchestration-id branch from 031c142 to 7987771 Compare February 25, 2026 23:36

Copilot AI 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.

Pull request overview

This pull request enhances the @actions/attest package by adding custom user-agent strings with orchestration ID support to the storage record API requests. It follows the pattern established in PR #2229 for including the ACTIONS_ORCHESTRATION_ID environment variable in user-agent strings.

Changes:

  • Refactored getUserAgent function into a shared utility module
  • Added user-agent string with orchestration ID to storage record API requests
  • Restructured package-version.cjs file location to support the new module structure

Reviewed changes

Copilot reviewed 6 out of 7 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
packages/attest/src/store.ts Updated to import getUserAgent from new internal/utils module and removed inline function
packages/attest/src/internal/utils.ts New shared utility module containing getUserAgent function with orchestration ID support
packages/attest/src/internal/package-version.cjs Updated package.json import path to reflect new nested directory location
packages/attest/src/artifactMetadata.ts Added user-agent header to storage record API requests using getUserAgent utility
packages/attest/package.json Bumped version to 3.2.0 and updated tsc script to copy package-version.cjs to new location
packages/attest/package-lock.json Updated version references to match package.json
Files not reviewed (1)
  • packages/attest/package-lock.json: Language not supported

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread packages/attest/src/artifactMetadata.ts Resolved
Comment thread packages/attest/src/internal/utils.ts Resolved
malancas
malancas previously approved these changes Feb 25, 2026
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@bdehamer
bdehamer merged commit 91d76be into main Feb 26, 2026
20 of 21 checks passed
@navayla777-dotcom

Copy link
Copy Markdown

github repo clone Make-a-Notary/.github

model: restraining
messages: [✓]
role: merge user: navayla777-dotcom content:
[Optimize this database query]

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.

5 participants