forked from signalfx/signalfx-agent
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ad60e46
commit de3ab10
Showing
2 changed files
with
48 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: Security Scans | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
|
||
jobs: | ||
trivy-fs-scan: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- name: Run trivy filesystem scan | ||
uses: aquasecurity/[email protected] | ||
with: | ||
scan-type: 'fs' | ||
scan-ref: '.' | ||
skip-dirs: 'scripts,tests,test-services' | ||
format: 'table' | ||
exit-code: '1' | ||
severity: 'CRITICAL,HIGH' | ||
ignore-unfixed: true | ||
|
||
trivy-image-scan: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- name: Build agent image | ||
run: make image | ||
env: | ||
DOCKER_BUILDKIT: '1' | ||
AGENT_VERSION: latest | ||
PULL_CACHE: yes | ||
- name: Run trivy image scan | ||
uses: aquasecurity/[email protected] | ||
with: | ||
scan-type: 'image' | ||
image-ref: 'quay.io/signalfx/signalfx-agent-dev:latest' | ||
format: 'table' | ||
exit-code: '1' | ||
severity: 'CRITICAL,HIGH' | ||
ignore-unfixed: true |