Skip to content

Commit

Permalink
test docker image from PR (#1892)
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenruizdegauna authored Jul 11, 2024
1 parent fba0600 commit b506ae4
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/security.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,14 @@ jobs:
- name: Build agent binaries
run: make ci/build TAG=DEV_CI

# don't use buildx so the image gets added to the docker local registry
- name: Build container agent (amd64)
run: make -C build/container/ build/base-amd64
run: make -C build/container/ build/base-amd64 DOCKER_BUILD_TAG_PREFIX=pr USE_BUILDX=false

- name: Scan newrelic/infrastructure container image
- name: Scan the created container image
uses: aquasecurity/trivy-action@master
with:
image-ref: "newrelic/infrastructure:build-amd64"
image-ref: "newrelic/infrastructure:pr-amd64"
format: 'table'
exit-code: '1'
ignore-unfixed: true
Expand Down

0 comments on commit b506ae4

Please sign in to comment.