Skip to content

Commit 9996a84

Browse files
authored
Merge pull request #21 from numtide/fix-grype-grypes
fix grype grypes
2 parents 0c76a81 + 66b9040 commit 9996a84

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

.github/workflows/build-and-release.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,14 +183,16 @@ jobs:
183183
cache-db: true
184184
image: "ghcr.io/${{ github.repository }}:${{ github.sha }}"
185185
output-file: grype.sarif
186-
severity-cutoff: critical # TODO: lower this once vulns are fixed
186+
severity-cutoff: high
187187
- name: Upload SARIF file
188188
uses: github/codeql-action/upload-sarif@e296a935590eb16afc0c0108289f68c87e2a89a5 # v4.30.7
189189
with:
190190
sarif_file: grype.sarif
191191
- name: Check success or failure
192192
if: ${{ steps.scan.outcome == 'failure' }}
193-
run: exit 1
193+
run: |-
194+
jq '.runs[0].results | map(select(.level == "error"))' grype.sarif
195+
exit 1
194196
195197
- name: Push to registry (proper)
196198
if: ${{ inputs.push-container-image }}

Containerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
FROM --platform=$BUILDPLATFORM alpine:3.22.1 AS build
1+
FROM --platform=$BUILDPLATFORM alpine:3.22.2 AS build
22
ARG TARGETOS
33
ARG TARGETARCH
44

55
COPY dist dist
66
RUN cp dist/multigres-operator-${TARGETARCH}/multigres-operator-${TARGETARCH} multigres-operator
77
RUN chmod +x multigres-operator
88

9-
FROM alpine:3.22.1
9+
FROM alpine:3.22.2
1010

1111
COPY --from=build multigres-operator multigres-operator
1212

0 commit comments

Comments
 (0)