From f1f8595b39243296603f2552b577bf6364aab65d Mon Sep 17 00:00:00 2001 From: Jakub Raczek Date: Fri, 10 Jan 2025 13:31:06 +0100 Subject: [PATCH] Update github-actions.yml --- .github/workflows/github-actions.yml | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/.github/workflows/github-actions.yml b/.github/workflows/github-actions.yml index 96fd3c37..432618c2 100644 --- a/.github/workflows/github-actions.yml +++ b/.github/workflows/github-actions.yml @@ -110,17 +110,10 @@ jobs: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} if: startsWith(github.ref, 'refs/tags/') - - name: install checkov - run: | - sudo apt update - sudo apt install software-properties-common - sudo add-apt-repository ppa:deadsnakes/ppa - sudo apt install python3.7 - sudo apt install python3-pip - sudo python3.7 -m pip install -U checkov - - name: Scan Dockerfile - run: | - checkov --directory . + - name: Checkov docker image + uses: bridgecrewio/checkov-action@v12.1347.0 + with: + directory: . - name: Build and push uses: docker/build-push-action@v6 with: