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

✨ checks/evaluation logs findings #3409

Merged
merged 11 commits into from
Sep 12, 2023

Conversation

laurentsimon
Copy link
Contributor

@laurentsimon laurentsimon commented Aug 21, 2023

closes #3406

Let checks/evaluation logs findings

@laurentsimon laurentsimon temporarily deployed to gitlab August 21, 2023 19:45 — with GitHub Actions Inactive
@laurentsimon laurentsimon temporarily deployed to integration-test August 21, 2023 19:45 — with GitHub Actions Inactive
@codecov
Copy link

codecov bot commented Aug 21, 2023

Codecov Report

Merging #3409 (3630f54) into main (52a4843) will decrease coverage by 8.48%.
The diff coverage is 96.00%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3409      +/-   ##
==========================================
- Coverage   72.75%   64.27%   -8.48%     
==========================================
  Files         185      186       +1     
  Lines       13149    13155       +6     
==========================================
- Hits         9566     8455    -1111     
- Misses       3062     4237    +1175     
+ Partials      521      463      -58     

@laurentsimon laurentsimon temporarily deployed to gitlab August 21, 2023 19:52 — with GitHub Actions Inactive
@laurentsimon laurentsimon temporarily deployed to integration-test August 21, 2023 19:52 — with GitHub Actions Inactive
go.sum Outdated Show resolved Hide resolved
@laurentsimon laurentsimon force-pushed the feat/probes-log-findings branch from c99a206 to bcee394 Compare August 21, 2023 20:22
@laurentsimon laurentsimon temporarily deployed to gitlab August 21, 2023 20:22 — with GitHub Actions Inactive
@laurentsimon laurentsimon temporarily deployed to integration-test August 21, 2023 20:22 — with GitHub Actions Inactive
@laurentsimon laurentsimon temporarily deployed to gitlab August 21, 2023 20:26 — with GitHub Actions Inactive
@laurentsimon laurentsimon temporarily deployed to integration-test August 21, 2023 20:26 — with GitHub Actions Inactive
@laurentsimon laurentsimon temporarily deployed to gitlab August 21, 2023 20:27 — with GitHub Actions Inactive
@laurentsimon laurentsimon temporarily deployed to integration-test August 21, 2023 20:27 — with GitHub Actions Inactive
@laurentsimon
Copy link
Contributor Author

All tests green, ready for review

checker/check_result.go Outdated Show resolved Hide resolved
checker/check_result.go Outdated Show resolved Hide resolved
checks/evaluation/dependency_update_tool_test.go Outdated Show resolved Hide resolved
checks/evaluation/fuzzing_test.go Show resolved Hide resolved
checks/evaluation/security_policy.go Outdated Show resolved Hide resolved
checks/evaluation/security_policy_test.go Show resolved Hide resolved
checks/run_probes.go Outdated Show resolved Hide resolved
Signed-off-by: laurentsimon <[email protected]>
Signed-off-by: laurentsimon <[email protected]>
Signed-off-by: laurentsimon <[email protected]>
Signed-off-by: laurentsimon <[email protected]>
Signed-off-by: laurentsimon <[email protected]>
@laurentsimon laurentsimon temporarily deployed to gitlab September 7, 2023 03:46 — with GitHub Actions Inactive
@laurentsimon laurentsimon temporarily deployed to integration-test September 7, 2023 03:46 — with GitHub Actions Inactive
@spencerschrock
Copy link
Member

Ready for reviews

I thought we both were leaning towards option 1? #3409 (comment)

@laurentsimon
Copy link
Contributor Author

Ready for reviews

I thought we both were leaning towards option 1? #3409 (comment)

Sorry, I must have meant option 2.

Signed-off-by: laurentsimon <[email protected]>
@laurentsimon laurentsimon temporarily deployed to gitlab September 7, 2023 22:32 — with GitHub Actions Inactive
@laurentsimon laurentsimon temporarily deployed to integration-test September 7, 2023 22:33 — with GitHub Actions Inactive
Copy link
Member

@spencerschrock spencerschrock left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just a few small things to take care of

checker/check_result.go Outdated Show resolved Hide resolved
checks/evaluation/dependency_update_tool_test.go Outdated Show resolved Hide resolved
checks/evaluation/fuzzing_test.go Outdated Show resolved Hide resolved
checks/evaluation/security_policy_test.go Outdated Show resolved Hide resolved
AdamKorcz added a commit to AdamKorcz/scorecard that referenced this pull request Sep 8, 2023
Signed-off-by: AdamKorcz <[email protected]>
AdamKorcz added a commit to AdamKorcz/scorecard that referenced this pull request Sep 8, 2023
Signed-off-by: AdamKorcz <[email protected]>
Signed-off-by: laurentsimon <[email protected]>
@laurentsimon laurentsimon temporarily deployed to gitlab September 12, 2023 15:15 — with GitHub Actions Inactive
@laurentsimon laurentsimon temporarily deployed to integration-test September 12, 2023 15:15 — with GitHub Actions Inactive
Signed-off-by: laurentsimon <[email protected]>
@laurentsimon laurentsimon enabled auto-merge (squash) September 12, 2023 15:16
@laurentsimon laurentsimon temporarily deployed to gitlab September 12, 2023 15:16 — with GitHub Actions Inactive
@laurentsimon laurentsimon temporarily deployed to integration-test September 12, 2023 15:16 — with GitHub Actions Inactive
@laurentsimon laurentsimon merged commit 8b096ad into ossf:main Sep 12, 2023
@laurentsimon laurentsimon mentioned this pull request Sep 12, 2023
2 tasks
AdamKorcz added a commit to AdamKorcz/scorecard that referenced this pull request Sep 14, 2023
Signed-off-by: AdamKorcz <[email protected]>
AdamKorcz added a commit to AdamKorcz/scorecard that referenced this pull request Sep 28, 2023
Signed-off-by: AdamKorcz <[email protected]>
AdamKorcz added a commit to AdamKorcz/scorecard that referenced this pull request Oct 11, 2023
Signed-off-by: AdamKorcz <[email protected]>
AdamKorcz added a commit to AdamKorcz/scorecard that referenced this pull request Oct 24, 2023
Signed-off-by: AdamKorcz <[email protected]>
spencerschrock pushed a commit that referenced this pull request Oct 24, 2023
* 🌱 Add probe support for contributors metrics

Signed-off-by: AdamKorcz <[email protected]>

* fix lint issues

Signed-off-by: AdamKorcz <[email protected]>

* change 'contributorsWith' to 'contributorsFrom'

Signed-off-by: AdamKorcz <[email protected]>

* change remediation difficulty

Signed-off-by: AdamKorcz <[email protected]>

* fix nits

Signed-off-by: AdamKorcz <[email protected]>

* Updates to checks and checks/evaluation

Signed-off-by: AdamKorcz <[email protected]>

* fix tests like in #3409

Signed-off-by: AdamKorcz <[email protected]>

* fix raw test

Signed-off-by: AdamKorcz <[email protected]>

* Update description in def.yml

Signed-off-by: AdamKorcz <[email protected]>

* move logic out of utils

Signed-off-by: AdamKorcz <[email protected]>

* add comment to consolidate unit test validation

Signed-off-by: AdamKorcz <[email protected]>

* change a couple of t.Fatal to t.Error

Signed-off-by: AdamKorcz <[email protected]>

* un-remove comment

Signed-off-by: AdamKorcz <[email protected]>

* remove map

Signed-off-by: AdamKorcz <[email protected]>

* fix typo

Signed-off-by: AdamKorcz <[email protected]>

* remove lint comment

Signed-off-by: AdamKorcz <[email protected]>

* fix incorrect -1/0 scoring

Signed-off-by: AdamKorcz <[email protected]>

* Do not specify 'Github' in def.yml

Signed-off-by: AdamKorcz <[email protected]>

* do not mention 'which companies' in def.yml

Signed-off-by: AdamKorcz <[email protected]>

* Rename tests

Signed-off-by: AdamKorcz <[email protected]>

* Use getRawResults and uncomment logging statement

Signed-off-by: AdamKorcz <[email protected]>

* Define return values of probe better

Signed-off-by: AdamKorcz <[email protected]>

* Use proportional score instead of min score

Signed-off-by: AdamKorcz <[email protected]>

* revert changed scoring

Signed-off-by: AdamKorcz <[email protected]>

* fix incorrect function name

Signed-off-by: AdamKorcz <[email protected]>

* remove utility function that finds non-positive outcomes

Signed-off-by: AdamKorcz <[email protected]>

* rebase with latest upstream main and fix linter issues

Signed-off-by: AdamKorcz <[email protected]>

* Log findings in one statements except a logging statements per finding

Signed-off-by: AdamKorcz <[email protected]>

* redefine conditional logic

Signed-off-by: AdamKorcz <[email protected]>

* rebase

Signed-off-by: AdamKorcz <[email protected]>

* remove unused function

Signed-off-by: AdamKorcz <[email protected]>

---------

Signed-off-by: AdamKorcz <[email protected]>
diogoteles08 pushed a commit to diogoteles08/scorecard that referenced this pull request Nov 13, 2023
* 🌱 Add probe support for contributors metrics

Signed-off-by: AdamKorcz <[email protected]>

* fix lint issues

Signed-off-by: AdamKorcz <[email protected]>

* change 'contributorsWith' to 'contributorsFrom'

Signed-off-by: AdamKorcz <[email protected]>

* change remediation difficulty

Signed-off-by: AdamKorcz <[email protected]>

* fix nits

Signed-off-by: AdamKorcz <[email protected]>

* Updates to checks and checks/evaluation

Signed-off-by: AdamKorcz <[email protected]>

* fix tests like in ossf#3409

Signed-off-by: AdamKorcz <[email protected]>

* fix raw test

Signed-off-by: AdamKorcz <[email protected]>

* Update description in def.yml

Signed-off-by: AdamKorcz <[email protected]>

* move logic out of utils

Signed-off-by: AdamKorcz <[email protected]>

* add comment to consolidate unit test validation

Signed-off-by: AdamKorcz <[email protected]>

* change a couple of t.Fatal to t.Error

Signed-off-by: AdamKorcz <[email protected]>

* un-remove comment

Signed-off-by: AdamKorcz <[email protected]>

* remove map

Signed-off-by: AdamKorcz <[email protected]>

* fix typo

Signed-off-by: AdamKorcz <[email protected]>

* remove lint comment

Signed-off-by: AdamKorcz <[email protected]>

* fix incorrect -1/0 scoring

Signed-off-by: AdamKorcz <[email protected]>

* Do not specify 'Github' in def.yml

Signed-off-by: AdamKorcz <[email protected]>

* do not mention 'which companies' in def.yml

Signed-off-by: AdamKorcz <[email protected]>

* Rename tests

Signed-off-by: AdamKorcz <[email protected]>

* Use getRawResults and uncomment logging statement

Signed-off-by: AdamKorcz <[email protected]>

* Define return values of probe better

Signed-off-by: AdamKorcz <[email protected]>

* Use proportional score instead of min score

Signed-off-by: AdamKorcz <[email protected]>

* revert changed scoring

Signed-off-by: AdamKorcz <[email protected]>

* fix incorrect function name

Signed-off-by: AdamKorcz <[email protected]>

* remove utility function that finds non-positive outcomes

Signed-off-by: AdamKorcz <[email protected]>

* rebase with latest upstream main and fix linter issues

Signed-off-by: AdamKorcz <[email protected]>

* Log findings in one statements except a logging statements per finding

Signed-off-by: AdamKorcz <[email protected]>

* redefine conditional logic

Signed-off-by: AdamKorcz <[email protected]>

* rebase

Signed-off-by: AdamKorcz <[email protected]>

* remove unused function

Signed-off-by: AdamKorcz <[email protected]>

---------

Signed-off-by: AdamKorcz <[email protected]>
Signed-off-by: Diogo Teles Sant'Anna <[email protected]>
ashearin pushed a commit to kgangerlm/scorecard-gitlab that referenced this pull request Nov 13, 2023
* checks/validation logs findings

Signed-off-by: laurentsimon <[email protected]>

* gofmt file

Signed-off-by: laurentsimon <[email protected]>

* linter

Signed-off-by: laurentsimon <[email protected]>

* revert go.sum

Signed-off-by: laurentsimon <[email protected]>

* typo

Signed-off-by: laurentsimon <[email protected]>

* add unit tests and address comments

Signed-off-by: laurentsimon <[email protected]>

* update comment

Signed-off-by: laurentsimon <[email protected]>

* missing file

Signed-off-by: laurentsimon <[email protected]>

* use option 1

Signed-off-by: laurentsimon <[email protected]>

* use got / want in test

Signed-off-by: laurentsimon <[email protected]>

* missing tests updates

Signed-off-by: laurentsimon <[email protected]>

---------

Signed-off-by: laurentsimon <[email protected]>
Signed-off-by: Allen Shearin <[email protected]>
ashearin pushed a commit to kgangerlm/scorecard-gitlab that referenced this pull request Nov 13, 2023
* 🌱 Add probe support for contributors metrics

Signed-off-by: AdamKorcz <[email protected]>

* fix lint issues

Signed-off-by: AdamKorcz <[email protected]>

* change 'contributorsWith' to 'contributorsFrom'

Signed-off-by: AdamKorcz <[email protected]>

* change remediation difficulty

Signed-off-by: AdamKorcz <[email protected]>

* fix nits

Signed-off-by: AdamKorcz <[email protected]>

* Updates to checks and checks/evaluation

Signed-off-by: AdamKorcz <[email protected]>

* fix tests like in ossf#3409

Signed-off-by: AdamKorcz <[email protected]>

* fix raw test

Signed-off-by: AdamKorcz <[email protected]>

* Update description in def.yml

Signed-off-by: AdamKorcz <[email protected]>

* move logic out of utils

Signed-off-by: AdamKorcz <[email protected]>

* add comment to consolidate unit test validation

Signed-off-by: AdamKorcz <[email protected]>

* change a couple of t.Fatal to t.Error

Signed-off-by: AdamKorcz <[email protected]>

* un-remove comment

Signed-off-by: AdamKorcz <[email protected]>

* remove map

Signed-off-by: AdamKorcz <[email protected]>

* fix typo

Signed-off-by: AdamKorcz <[email protected]>

* remove lint comment

Signed-off-by: AdamKorcz <[email protected]>

* fix incorrect -1/0 scoring

Signed-off-by: AdamKorcz <[email protected]>

* Do not specify 'Github' in def.yml

Signed-off-by: AdamKorcz <[email protected]>

* do not mention 'which companies' in def.yml

Signed-off-by: AdamKorcz <[email protected]>

* Rename tests

Signed-off-by: AdamKorcz <[email protected]>

* Use getRawResults and uncomment logging statement

Signed-off-by: AdamKorcz <[email protected]>

* Define return values of probe better

Signed-off-by: AdamKorcz <[email protected]>

* Use proportional score instead of min score

Signed-off-by: AdamKorcz <[email protected]>

* revert changed scoring

Signed-off-by: AdamKorcz <[email protected]>

* fix incorrect function name

Signed-off-by: AdamKorcz <[email protected]>

* remove utility function that finds non-positive outcomes

Signed-off-by: AdamKorcz <[email protected]>

* rebase with latest upstream main and fix linter issues

Signed-off-by: AdamKorcz <[email protected]>

* Log findings in one statements except a logging statements per finding

Signed-off-by: AdamKorcz <[email protected]>

* redefine conditional logic

Signed-off-by: AdamKorcz <[email protected]>

* rebase

Signed-off-by: AdamKorcz <[email protected]>

* remove unused function

Signed-off-by: AdamKorcz <[email protected]>

---------

Signed-off-by: AdamKorcz <[email protected]>
Signed-off-by: Allen Shearin <[email protected]>
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.

Feature: let check/evaluation log the findings
2 participants