- Notifications
You must be signed in to change notification settings - Fork 0
feat(alpha): packaging — the proven story up front, a non-blocking Action, and an honest attach contract (A4)#312
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Uh oh!
There was an error while loading. Please reload this page.
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
739c869
fix(examples): measure the flagship hold deadline monotonically
claude edb2157
docs: lead with the proven lifetime-bug story
claude 6fb1870
docs: explain how Owen proves durable retention
claude 0e274cc
docs: scope the retention claim to what a snapshot can establish
claude 559608d
feat(action): annotate by default, fail only when asked — and never o…
claude 3587237
feat(audit): name the policy that refused the attach, and pin the ref…
claude 604272e
fix(check,audit): a broken stage 1 is not a finding; Yama advice per …
claude File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -33,9 +33,15 @@ inputs: | ||
| required: false | ||
| default: "error" | ||
| fail-on-finding: | ||
| description: "Fail the step when any leak is found." | ||
| description: >- | ||
| Whether a FINDING fails the step. Default false: findings are published | ||
| as annotations/SARIF and the step succeeds, so adding Owen to a repository | ||
| cannot turn its CI red on day one. Set true once you are ready to gate on | ||
| it. This input governs findings ONLY — an operational failure (the | ||
| analyser crashed, the input could not be read, no SARIF could be written) | ||
| always fails the step, in either mode. | ||
| required: false | ||
| default: "true" | ||
| default: "false" | ||
| python-version: | ||
| description: "Python version for the Owen core." | ||
| required: false | ||
| @@ -130,8 +136,25 @@ runs: | ||
| fi | ||
| exit 0 | ||
| fi | ||
| args=(--root "${{ github.action_path }}" --format "$OWN_FORMAT" --severity "$OWN_SEVERITY" "${config_args[@]}") | ||
| if [ "$OWN_FAIL_ON_FINDING" = "true" ]; then | ||
| args+=(--fail-on-finding) | ||
| # Always ask own-check for its TRUE tier (0 clean / 1 findings / >=2 | ||
| # operational failure) and decide the step's status here. Run WITHOUT | ||
| # --fail-on-finding and the script folds findings into 0, making tier 1 | ||
| # indistinguishable from tier 0 — and tier 1 is the only one this | ||
| # action is allowed to negotiate about. | ||
| set +e | ||
| "$check" --root "${{ github.action_path }}" --format "$OWN_FORMAT" \ | ||
| --severity "$OWN_SEVERITY" "${config_args[@]}" --fail-on-finding -- "$OWN_PATH" | ||
| rc=$? | ||
| set -e | ||
| if [ "$rc" -ge 2 ]; then | ||
PhysShell marked this conversation as resolved.
Uh oh!There was an error while loading. Please reload this page. | ||
| # NOT a finding: the analyser crashed, the input could not be read, or | ||
| # the contract drifted. "Annotations instead of failure" is a policy | ||
| # about defects found in your code, never about the tool failing to | ||
| # look — that must not reach anyone as a green check. | ||
| echo "::error::Owen could not complete the analysis (exit $rc). This is an operational failure, not a finding — fail-on-finding does not apply to it. The diagnostic is above." | ||
| exit "$rc" | ||
| fi | ||
| if [ "$rc" -eq 1 ] && [ "$OWN_FAIL_ON_FINDING" = "true" ]; then | ||
| exit 1 | ||
| fi | ||
| "$check" "${args[@]}" -- "$OWN_PATH" | ||
| exit 0 | ||
Oops, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Oops, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
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.
Uh oh!
There was an error while loading. Please reload this page.