Skip to content

Commit

Permalink
Update github-actions.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
raczeja authored Jan 10, 2025
1 parent 03cec07 commit f1f8595
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions .github/workflows/github-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit f1f8595

Please sign in to comment.