Skip to content
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

Handle Unsupported Binary Artifacts check #4

Conversation

abhiseksanyal
Copy link
Collaborator

What kind of change does this PR introduce?

New functionality added as part of the PR ossf#2039 is not supported for local repositories. When this code path is hit, it will check if it is an unsupported error and not fail the Binary Artifacts check. Fallback to existing behavior for any other type of errors

(Is it a bug fix, feature, docs update, something else?)

What is the current behavior?

When unsupported code path is hit in Binary Artifacts check, it generates an internal error and scorecard eventually exits with an error code of 1

What is the new behavior (if this is a feature change)?**

When unsupported code path is hit in Binary Artifacts check, it will not generate an internal error and scorecard will exit with a zero error code. For any other type of errors, it will fall back to existing behavior

  • Tests for the changes have been added (for bug fixes/features)

Which issue(s) this PR fixes

Special notes for your reviewer

Does this PR introduce a user-facing change?

For user-facing changes, please add a concise, human-readable release note to
the release-note

(In particular, describe what changes users might need to make in their
application as a result of this pull request.)


New functionality added as part of the PR ossf#2039 is not supported for
local repositories. When this code path is hit, it will check if it is
an unsupported error and not fail the Binary Artifacts check.
Fallback to existing behavior for any other type of errors
@abhiseksanyal abhiseksanyal merged commit fe8c6fe into lineaje-v4.7.0 Oct 14, 2022
@abhiseksanyal abhiseksanyal deleted the feature/handle-unsupported-binary-artifacts-check branch October 14, 2022 12:45
abhiseksanyal added a commit that referenced this pull request Jul 6, 2023
New functionality added as part of the PR ossf#2039 is not supported for
local repositories. When this code path is hit, it will check if it is
an unsupported error and not fail the Binary Artifacts check.
Fallback to existing behavior for any other type of errors

Co-authored-by: Abhisek Sanyal <[email protected]>
abhiseksanyal added a commit that referenced this pull request Jul 6, 2023
New functionality added as part of the PR ossf#2039 is not supported for
local repositories. When this code path is hit, it will check if it is
an unsupported error and not fail the Binary Artifacts check.
Fallback to existing behavior for any other type of errors
abhiseksanyal added a commit that referenced this pull request Aug 22, 2023
New functionality added as part of the PR ossf#2039 is not supported for
local repositories. When this code path is hit, it will check if it is
an unsupported error and not fail the Binary Artifacts check.
Fallback to existing behavior for any other type of errors
@abhiseksanyal
Copy link
Collaborator Author

This change is not required anymore, as support for this has been added in the main fork via PR ossf#3415

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.

1 participant