Skip to content

fix: TP: store extra information - #2283

Merged
netomi merged 2 commits into
mainfrom
cstamas/issue-2116
Oct 5, 2026
Merged

netomi merged 2 commits into
mainfrom
cstamas/issue-2116

Conversation

@cstamas

@cstamas cstamas commented Oct 1, 2026

Copy link
Copy Markdown
Member

Added code to optionally (if present) record extra information about trusted publishing claim verification:

  • GitHub: job_workflow_ref, run_id, workflow_sha
  • GitLab: pipeline_id, job_id, sha

Closes #2116

Added code to optionally (if present) record extra information about trusted
publishing claim verification:

- GitHub: job_workflow_ref, run_id, workflow_sha
- GitLab: pipeline_id, job_id, sha

Closes #2116
@cstamas
cstamas marked this pull request as ready for review October 1, 2026 09:35
@cstamas cstamas changed the title fix: store extra information fix: TP: store extra information Oct 1, 2026
@cstamas
cstamas requested review from netomi and a balanced review from Copilot October 1, 2026 10:29

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.

Copilot review overview

🟡 Changes recommended

GitHub provenance records workflow_sha but omits the required source commit sha.

Review effort: Balanced
Findings: 1 Medium severity

Open (1)
What changed in this PR

Extends trusted-publishing provenance with optional workflow-run metadata.

Changes:

  • Records GitHub and GitLab run identifiers and commit metadata.
  • Tests extraction and matching behavior with optional claims.
File Description
GitLabTrustedPublishingProviderTest.java Tests optional GitLab provenance claims.
GitHubTrustedPublishingProviderTest.java Tests optional GitHub provenance claims.
GitLabTrustedPublishingProvider.java Extracts pipeline, job, and commit identifiers.
GitHubTrustedPublishingProviderSupport.java Extracts workflow and run identifiers.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

The property is not clearly documented but multiple sources suggests
is used. So using it and we will test it.
@netomi
netomi merged commit 3f97c42 into main Oct 5, 2026
5 checks passed
@netomi
netomi deleted the cstamas/issue-2116 branch October 5, 2026 07:54
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.

Trusted publishing: record the workflow run, not only the ref, in the version provenance

3 participants