Skip to content

Commit

Permalink
security scans
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffreyc-splunk committed Dec 17, 2021
1 parent ad60e46 commit de3ab10
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ jobs:

- name: Build image and bundle
env:
DOCKER_BUILDKIT: '1'
PULL_CACHE: yes
AGENT_VERSION: latest
run: |
Expand Down
47 changes: 47 additions & 0 deletions .github/workflows/security-scans.yml
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

0 comments on commit de3ab10

Please sign in to comment.