Skip to content

Commit

Permalink
debug scan
Browse files Browse the repository at this point in the history
  • Loading branch information
Emterry committed Dec 5, 2024
1 parent d5d24e8 commit b2fc6e9
Showing 1 changed file with 19 additions and 8 deletions.
27 changes: 19 additions & 8 deletions .github/workflows/scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,14 @@ jobs:
id: checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Build with Docker Compose
- name: Build
id: build
shell: bash
env:
IMAGE_NAME: ${{ github.repository }}
IMAGE_NAME: ghcr.io/${{ github.repository }}
IMAGE_TAG: ${{ github.sha }}
run: |
docker compose build
make build
- name: Scan
id: scan
Expand All @@ -38,6 +35,20 @@ jobs:
TRIVY_DB_REPOSITORY: public.ecr.aws/aquasecurity/trivy-db:2
TRIVY_JAVA_DB_REPOSITORY: public.ecr.aws/aquasecurity/trivy-java-db:1
with:
image-ref: ${{ github.repository }}_eks:${{ github.sha }}
image-ref: ghcr.io/${{ github.repository }}:${{ github.sha }}
severity: HIGH,CRITICAL
exit-code: 1
exit-code: 1

# - name: Set up Docker Buildx
# uses: docker/setup-buildx-action@v2

# - name: Build with Docker Compose
# id: build
# shell: bash
# env:
# IMAGE_NAME: ${{ github.repository }}
# IMAGE_TAG: ${{ github.sha }}
# run: |
# docker compose build


0 comments on commit b2fc6e9

Please sign in to comment.