Skip to content

Commit

Permalink
fix: no mondoo scan if token is not available
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Buchleitner <[email protected]>
  • Loading branch information
mabunixda committed Dec 6, 2024
1 parent 645cb40 commit 263cdc7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ on:
type: string
default: ''

env:
MONDOO_CONFIG_BASE64: ${{ secrets.MONDOO_SERVICE_ACCOUNT }}

jobs:

pre-commit:
Expand Down Expand Up @@ -120,7 +123,6 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3


- name: Build Container Image
id: docker_build
uses: docker/build-push-action@v5
Expand All @@ -132,9 +134,8 @@ jobs:
build-args: ${{ inputs.build_args }}

- name: Scan Docker Image
if: env.MONDOO_CONFIG_BASE64 != ''
uses: mondoohq/actions/[email protected]
env:
MONDOO_CONFIG_BASE64: ${{ secrets.MONDOO_SERVICE_ACCOUNT }}
with:
image: ${{ steps.prep.outputs.ghcr_tag }}
score-threshold: ${{ inputs.score }}
Expand Down

0 comments on commit 263cdc7

Please sign in to comment.