Skip to content

fix: re-enable trivvy docker scan #4943

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
merged 5 commits into from
Mar 4, 2022
Merged

fix: re-enable trivvy docker scan #4943

merged 5 commits into from
Mar 4, 2022

Conversation

jsjoeio
Copy link
Contributor

@jsjoeio jsjoeio commented Mar 3, 2022

This PR re-enables the trivy Docker scan as part of our CI pipeline. With this, we will have trivy do a security check on our Docker image tagged latest so that we can catch any security vulnerabilities.

Testing

Example scan: https://github.com/coder/code-server/runs/5428919398?check_suite_focus=true

Previous Context

@code-asher I were chatting about this. We want the scan to run on latest instead of the local build since the local build will use the newest dependencies. Instead, we want to check what's in production and ensure that it has no issues. We'll run this new workflow nightly (once a day) and check for any issues. This way, we can stay on top of the Docker image and fix things sooner.

Fixes #4903

@jsjoeio jsjoeio added security Security related ci Issues related to ci chore Related to maintenance or clean up labels Mar 3, 2022
@jsjoeio jsjoeio self-assigned this Mar 3, 2022
@jsjoeio jsjoeio temporarily deployed to CI March 3, 2022 18:24 Inactive
@codecov
Copy link

codecov bot commented Mar 3, 2022

Codecov Report

Merging #4943 (b5ca887) into main (f0faa22) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #4943   +/-   ##
=======================================
  Coverage   70.30%   70.30%           
=======================================
  Files          29       29           
  Lines        1677     1677           
  Branches      371      371           
=======================================
  Hits         1179     1179           
  Misses        424      424           
  Partials       74       74           

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 f0faa22...b5ca887. Read the comment docs.

@jsjoeio jsjoeio temporarily deployed to npm March 3, 2022 18:33 Inactive
@github-actions
Copy link

github-actions bot commented Mar 3, 2022

✨ Coder.com for PR #4943 deployed! It will be updated on every commit.

@jsjoeio jsjoeio temporarily deployed to CI March 3, 2022 22:36 Inactive
@jsjoeio jsjoeio temporarily deployed to CI March 4, 2022 22:30 Inactive
@jsjoeio jsjoeio marked this pull request as ready for review March 4, 2022 22:31
@jsjoeio jsjoeio requested a review from a team March 4, 2022 22:31
@jsjoeio jsjoeio temporarily deployed to npm March 4, 2022 22:39 Inactive
Copy link
Member

@code-asher code-asher left a comment

Choose a reason for hiding this comment

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

Awesome!

@jsjoeio jsjoeio merged commit 3c6f85c into main Mar 4, 2022
@jsjoeio jsjoeio deleted the jsjoeio/fix-trivvy-docker branch March 4, 2022 22:59
TinLe pushed a commit to TinLe/code-server that referenced this pull request Apr 23, 2022
* fix: re-enable trivvy docker scan

* wip

* fixup

* fixup

* fixup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore Related to maintenance or clean up ci Issues related to ci security Security related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Chore]: re-add trivvy scan to scan Docker image
2 participants