Skip to content

Commit

Permalink
fix workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
0GiS0 committed Sep 23, 2023
1 parent 9eed86a commit f619f44
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/checkov.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@ jobs:
security-events: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build the image
run: docker build -t ${{ env.IMAGE_NAME }} ${{ env.IMAGE_PATH }}
- uses: actions/checkout@v3
- name: Run Checkov action
id: checkov
uses: bridgecrewio/checkov-action@master
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docker-scans.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
contents: read
security-events: write
uses: 0GiS0/scan-docker-vulnerabilities/.github/workflows/trivy.yaml@main
terrascan:
grype:
permissions:
contents: read
security-events: write
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/grype.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ jobs:
- name: Build the Container image
run: docker build . --file ${{ inputs.dockerfile_path }} --tag ${{ inputs.image_name }}
- uses: anchore/scan-action@v3
continue-on-error: true
id: scan
with:
image: ${{ inputs.image_name }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/trivy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:

- name: Build an image from Dockerfile
run: |
docker build -t ${{ inputs.image_name }} ${{ inputs.dockerfile_path }} .
docker build -t ${{ inputs.image_name }} -f ${{ inputs.dockerfile_path }} .
- name: Run Trivy vulnerability scanner
uses: aquasecurity/trivy-action@master
Expand Down

0 comments on commit f619f44

Please sign in to comment.