-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
NR-110006 chore: Update gostatsd base version to 35.1.19. Bump alpine…
… to 3.17.3 (#41) * NR-110006 chore: Update gostatsd base version to 35.1.19. Bump alpine to 3.17.3 * test arm before amd * ci: run integrations tests in ubuntu * dockerx
- Loading branch information
1 parent
441434c
commit 43f18be
Showing
6 changed files
with
67 additions
and
18 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
name: Nightly build | ||
on: | ||
schedule: | ||
- cron: "0 3 * * *" | ||
push: | ||
branches: | ||
- master | ||
|
||
|
||
env: | ||
BASE_IMAGE_TAG: 3.17.3 | ||
GOSTATSD_TAG: 35.1.19 | ||
SNYK_TOKEN: ${{ secrets.CAOS_SNYK_TOKEN }} | ||
TEST_IMAGE: "newrelic/nri-statsd:nightly" | ||
|
||
jobs: | ||
trivy_scanner: | ||
name: Security scanner for docker image | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Login to DockerHub | ||
uses: docker/login-action@v2 | ||
with: | ||
username: ${{ secrets.OHAI_DOCKER_HUB_ID }} | ||
password: ${{ secrets.OHAI_DOCKER_HUB_PASSWORD }} | ||
|
||
- name: Build image | ||
run: | | ||
make build/docker-amd64 BASE_IMAGE_TAG=${{ env.BASE_IMAGE_TAG }} GOSTATSD_TAG=${{ env.GOSTATSD_TAG }} | ||
- name: Run Snyk to check Docker image for vulnerabilities | ||
uses: snyk/actions/docker@master | ||
env: | ||
SNYK_TOKEN: ${{ env.SNYK_TOKEN }} | ||
with: | ||
image: ${{ env.TEST_IMAGE }} | ||
args: --file=Dockerfile --severity-threshold=high | ||
|
||
- name: Run Trivy to check Docker image for vulnerabilities | ||
uses: aquasecurity/trivy-action@master | ||
with: | ||
image-ref: ${{ env.TEST_IMAGE }} | ||
format: 'table' | ||
exit-code: '1' | ||
ignore-unfixed: true | ||
vuln-type: 'os,library' | ||
severity: "CRITICAL,HIGH" |
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
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
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