Skip to content

Return exit code 2 on invalid or not found subject for setup-jfrog-cli#106

Merged
mnsboev merged 2 commits intojfrog:mainfrom
mnsboev:exit-code-for-setup-jfrog-cli
Jul 21, 2025
Merged

Return exit code 2 on invalid or not found subject for setup-jfrog-cli#106
mnsboev merged 2 commits intojfrog:mainfrom
mnsboev:exit-code-for-setup-jfrog-cli

Conversation

@mnsboev
Copy link
Collaborator

@mnsboev mnsboev commented Jul 17, 2025

  • All tests passed. If this feature is not already covered by the tests, I added new tests.
  • All static analysis checks passed.
  • Appropriate label is added to auto generate release notes.
  • I used gofmt for formatting the code before submitting the pull request.
  • PR description is clear and concise, and it includes the proposed solution/fix.

Description
This PR update the logic of evidence creation with --sigstore-bundle flag. Here will be returned the exit code 2 for subject-related failures when subject auto-resolution is used. This change prevents the pipeline from failing with GitHub attestation if the DSSE envelope of the Sigstore bundle either does not contain a subject or contains it in a format that does not comply with Artifactory standards. As a result, users can choose to skip evidence creation if they are unsure about the subject.

@mnsboev mnsboev added the new feature Automatically generated release notes label Jul 17, 2025
@mnsboev mnsboev force-pushed the exit-code-for-setup-jfrog-cli branch from 506ba14 to d05a6f1 Compare July 21, 2025 10:29
@mnsboev mnsboev merged commit 2ceb596 into jfrog:main Jul 21, 2025
14 of 16 checks passed
naveenku-jfrog pushed a commit to naveenku-jfrog/jfrog-cli-artifactory that referenced this pull request Aug 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

new feature Automatically generated release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants