Skip to content

Commit

Permalink
Use Scanning v2 (#16)
Browse files Browse the repository at this point in the history
Changed the action to leverage on Sysdig cli scanner (Scanning V2 engine)
  • Loading branch information
dark-vex committed Jan 30, 2024
1 parent ca73338 commit c1f15f1
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,29 +69,24 @@ jobs:
with:
username: ${{ secrets.DOCKER_USER }}
password: ${{ secrets.DOCKER_PASS }}

#- name: Download artifact
# uses: actions/download-artifact@v2
# with:
# name: Save image version

- name: Generate static files
run: |
docker pull docker.io/darkvex/fail-builder:arlo-fail-nginx
- name: Scan image
id: scan
uses: sysdiglabs/scan-action@v3
uses: sysdiglabs/scan-action@v4
with:
image-tag: "docker.io/darkvex/fail-builder:arlo-fail-nginx"
sysdig-secure-token: ${{ secrets.SYSDIG_SECURE_TOKEN }}
input-type: docker-daemon
run-as-user: root

- name: Update Scan results
uses: github/codeql-action/upload-sarif@v1
if: always()
uses: github/codeql-action/upload-sarif@v3
if: success() || failure()
with:
sarif_file: ${{ steps.scan.outputs.sarifReport }}
sarif_file: ${{ github.workspace }}/sarif.json

# deploy:
# runs-on: ubuntu-latest
Expand Down

0 comments on commit c1f15f1

Please sign in to comment.