Skip to content

Using trivy to scan container image #190

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions .github/workflows/pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,16 @@ jobs:

sudo ./release/http-downloader_linux_amd64/hd install ks
ks version
- name: Upload Artifact for darwin
uses: actions/upload-artifact@v2
- name: Run Trivy vulnerability scanner
uses: aquasecurity/trivy-action@master
with:
name: hd-darwin-amd64
path: release/hd-darwin-amd64.tar.gz
- name: Upload Artifact for linux
uses: actions/upload-artifact@v2
with:
name: hd-linux-amd64
path: release/hd-linux-amd64.tar.gz
image-ref: 'surenpi/hd:latest'
format: 'table'
exit-code: '1'
ignore-unfixed: true
vuln-type: 'os,library'
severity: 'CRITICAL,HIGH'

GoLint:
name: Lint
runs-on: ubuntu-20.04
Expand Down
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
FROM alpine:3.10

RUN apk add --upgrade [email protected]
COPY hd /usr/local/bin/hd
RUN hd fetch

Expand Down