Skip to content

ci: fix codecov and snyk#145

Merged
aaron-steinfeld merged 1 commit intomainfrom
fix-codecov-snyk
Oct 22, 2021
Merged

ci: fix codecov and snyk#145
aaron-steinfeld merged 1 commit intomainfrom
fix-codecov-snyk

Conversation

@aaron-steinfeld
Copy link
Copy Markdown
Contributor

Description

Two separate fixes here.
Codecov: bash uploader is being deprecated and is currently in the brownout phase. We need to upgrade to the v2 gh action in all repos.

More info: https://about.codecov.io/blog/codecov-uploader-deprecation-plan/

Snyk: Snyk changed their server implementation, and the default remote uri detection no longer works. After weeks with snyk support, they made some changes and now this works, we need to add this param for all invocations.

@aaron-steinfeld aaron-steinfeld requested a review from a team as a code owner October 22, 2021 17:44
uses: snyk/actions/setup@0.3.0
- name: Snyk test
run: snyk test --all-sub-projects --org=hypertrace --severity-threshold=low --policy-path=.snyk --configuration-matching='^runtimeClasspath$'
run: snyk test --all-sub-projects --org=hypertrace --severity-threshold=low --policy-path=.snyk --configuration-matching='^runtimeClasspath$' --remote-repo-url='${{ github.server_url }}/${{ github.repository }}.git'
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Hopefully this works. I verified that it does when hardcoded, but this should make it easier to copy into more repos. This change won't take effect until post-merge though.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Confirmed working (but it failed because new vulnerabilities since it hasn't been running 😦 )

@codecov
Copy link
Copy Markdown

codecov Bot commented Oct 22, 2021

Codecov Report

Merging #145 (b243b57) into main (a2814d0) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##               main     #145   +/-   ##
=========================================
  Coverage     62.26%   62.26%           
  Complexity      332      332           
=========================================
  Files            43       43           
  Lines          3254     3254           
  Branches        380      380           
=========================================
  Hits           2026     2026           
  Misses         1045     1045           
  Partials        183      183           
Flag Coverage Δ
integration 62.26% <ø> (ø)
unit 42.95% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.


Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a2814d0...b243b57. Read the comment docs.

@github-actions

This comment has been minimized.

@aaron-steinfeld aaron-steinfeld merged commit d47556d into main Oct 22, 2021
@aaron-steinfeld aaron-steinfeld deleted the fix-codecov-snyk branch October 22, 2021 17:47
@github-actions
Copy link
Copy Markdown

Unit Test Results

  33 files  ±0    33 suites  ±0   27s ⏱️ ±0s
151 tests ±0  151 ✔️ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit d47556d. ± Comparison against base commit a2814d0.

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.

2 participants