-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Add Trivy security scans #6876
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
Add Trivy security scans #6876
Conversation
Currently the scan is failing Created an issue for it - link |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great PR! 🤯 We left some comments during the review, please check them out.
.github/workflows/trivy.yml
Outdated
- name: Build the Docker image | ||
run: docker build . -t appwrite_image:latest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's build like how we do in tests to make use of caching:
appwrite/.github/workflows/tests.yml
Lines 28 to 44 in fce1864
# This is a separate action that sets up buildx runner | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v2 | |
- name: Build Appwrite | |
uses: docker/build-push-action@v3 | |
with: | |
context: . | |
push: false | |
tags: appwrite-dev | |
load: true | |
cache-from: type=gha | |
cache-to: type=gha,mode=max | |
build-args: | | |
DEBUG=false | |
TESTING=true | |
VERSION=dev |
.github/workflows/trivy.yml
Outdated
@@ -0,0 +1,27 @@ | |||
name: Trivy |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's name the file scan-container.yml and make this name Scan container. The workflow and goal is to have scans for containers and trivy is just a tool that may get swapped out later.
Co-authored-by: Steven Nguyen <1477010+stnguyen90@users.noreply.github.com>
Hey there! There were a lot of big PRs during this Hacktoberfest, and we wanted to give everyone ample time to collaborate with our engineering team. If you were able to merge your PRs during October, amazing. If it’s still not merged, don’t worry about it either. Either way, we’ve got your Hacktoberfest swag minted and ready to ship. Please comment with your Discord username here so we can contact you about your shipping information to deliver your Hacktoberfest swag. |
Refactored this into a nightly running job that builds the image from source and runs a filesystem scan to scan for potential code vulnerabilities. Sample of what they look like - https://github.com/EVDOG4LIFE/appwrite_wfTest/security/code-scanning FS and Image scan happen in parallel - see successful run on my fork here - https://github.com/EVDOG4LIFE/appwrite_wfTest/actions/runs/10206787738 |
What does this PR do?
Added Trivy scan
Test Plan
Ran the scan on my personal forked Repo link
Related PRs and Issues
Checklist