Expose KOSLI_FLOW and KOSLI_TRAIL as workflow outputs#26
Merged
Conversation
The base workflow computes the Kosli flow and trail used for attestations, but callers had no way to read them. Callers of the apply and plan workflows sometimes need to do further work after the call and must know where to send their own attestations. Emit KOSLI_FLOW and KOSLI_TRAIL as step outputs in base.yml, surface them as job and workflow_call outputs, and bubble them up through plan.yml and apply.yml. Also update apply.yml's reset-drift-detection job to consume these outputs instead of recalculating the flow and trail, removing the duplicated values. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
actionlint flagged the unquoted $COMMIT_ARG in several kosli `run:` steps. The word-splitting is intentional: COMMIT_ARG expands to either nothing or `--commit <ref>`, so quoting it would break the empty case. Mark the intent explicitly with a `# shellcheck disable=SC2086` directive, converting the affected single-line steps to block form. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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 base workflow computes the Kosli flow and trail used for attestations, but callers had no way to read them. Callers of the apply and plan workflows sometimes need to do further work after the call and must know where to send their own attestations.
Emit KOSLI_FLOW and KOSLI_TRAIL as step outputs in base.yml, surface them as job and workflow_call outputs, and bubble them up through plan.yml and apply.yml. Also update apply.yml's reset-drift-detection job to consume these outputs instead of recalculating the flow and trail, removing the duplicated values.