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

chore: move to trivy based image scan, removed snyk #187

Merged
merged 8 commits into from
Jul 4, 2023

Conversation

saxenakshitiz
Copy link
Contributor

As part of this PR:

Adding build to validate image using trivy
Removed snyk steps
Updates few action version
Removed explicit caching step

@saxenakshitiz saxenakshitiz requested a review from a team as a code owner June 27, 2023 07:14
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@codecov
Copy link

codecov bot commented Jun 27, 2023

Codecov Report

Merging #187 (a29f5a2) into main (6b3081e) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff             @@
##               main     #187    +/-   ##
==========================================
  Coverage     78.80%   78.80%            
+ Complexity      898       10   -888     
==========================================
  Files            80       80            
  Lines          3651     3651            
  Branches        419      419            
==========================================
  Hits           2877     2877            
  Misses          598      598            
  Partials        176      176            
Flag Coverage Δ
integration 78.80% <ø> (ø)
unit ?

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

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@github-actions

This comment has been minimized.

.github/workflows/pr-build.yml Outdated Show resolved Hide resolved
@@ -7,26 +7,14 @@ on:

jobs:
test:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
Copy link
Contributor

Choose a reason for hiding this comment

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

consider consolidating test and build into a single workflow. Example:
https://github.com/hypertrace/service-framework/pull/70/files

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure. Will merge them in separate PR.

build.gradle.kts Show resolved Hide resolved
@github-advanced-security
Copy link

This pull request sets up GitHub code scanning for this repository. Once the scans have completed and the checks have passed, the analysis results for this pull request branch will appear on this overview. Once you merge this pull request, the 'Security' tab will show more code scanning analysis results (for example, for the default branch). Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results. For more information about GitHub code scanning, check out the documentation.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@aaron-steinfeld
Copy link
Contributor

Went through the view gen PR to give some suggestions on tacking suppressions an constraints - posting them here too in case helpful hypertrace/view-generator-framework#75 (comment)

@github-actions

This comment has been minimized.

owasp-suppressions.xml Outdated Show resolved Hide resolved
owasp-suppressions.xml Outdated Show resolved Hide resolved
owasp-suppressions.xml Outdated Show resolved Hide resolved
implementation("org.apache.calcite:calcite-babel:1.34.0") {
because("CVE-2022-39135")
}
implementation("org.apache.avro:avro:1.11.1") {
Copy link
Contributor

Choose a reason for hiding this comment

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

There's a number of high-risk upgrades in here. Avro, snakeyaml major version etc. Assuming the direct dep hasn't upgraded, make sure to test at runtime thoroughly if you haven't already

Copy link
Contributor Author

Choose a reason for hiding this comment

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

will verify them

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Validated on saas-dev-sanbox. Query service came up fine. No error in logs when UI is accessed. UI was loading up fine as well.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@saxenakshitiz saxenakshitiz merged commit 52f972f into main Jul 4, 2023
@saxenakshitiz saxenakshitiz deleted the add_trivy_action branch July 4, 2023 13:44
@github-actions
Copy link

github-actions bot commented Jul 4, 2023

Unit Test Results

  39 files  ±0    39 suites  ±0   11s ⏱️ +3s
262 tests ±0  262 ✔️ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit 52f972f. ± Comparison against base commit 6b3081e.

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