Skip to content

Commit

Permalink
Fix trivy step order
Browse files Browse the repository at this point in the history
  • Loading branch information
VOID404 committed Aug 14, 2024
1 parent 0b00ee7 commit a40a566
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/compass-manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,12 @@ jobs:
- name: Checkout code
uses: actions/checkout@v3

- name: Install trivy
run: |
mkdir ./trivy
curl -L https://github.com/aquasecurity/trivy/releases/download/v0.49.1/trivy_0.49.1_Linux-64bit.tar.gz | tar xvz --directory=./trivy
./trivy/trivy --version
- name: Run Trivy vulnerability scanner
uses: aquasecurity/[email protected]
with:
Expand All @@ -99,12 +105,6 @@ jobs:
format: json
output: 'trivy-results.json'

- name: Install trivy
run: |
mkdir ./trivy
curl -L https://github.com/aquasecurity/trivy/releases/download/v0.49.1/trivy_0.49.1_Linux-64bit.tar.gz | tar xvz --directory=./trivy
./trivy/trivy --version
- name: Convert results
if: success() || failure()
run: |
Expand Down

0 comments on commit a40a566

Please sign in to comment.