Skip to content

Commit

Permalink
chore(ci): removed trivy scan from main workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
visibilityspots committed Jan 19, 2024
1 parent 9090e48 commit 5b6d001
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 34 deletions.
33 changes: 1 addition & 32 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ on:
- '*'

jobs:

test:
runs-on: ubuntu-latest
steps:
Expand All @@ -25,38 +24,8 @@ jobs:
GOSS_FILES_STRATEGY: cp
run: dgoss run visibilityspots/cloudflared:dev

- name: Cache image
uses: ishworkh/container-image-artifact-upload@v1.0.0
with:
image: "visibilityspots/cloudflared:dev"

scan:
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Fetch cached image
uses: ishworkh/container-image-artifact-download@v1.0.0
with:
image: "visibilityspots/cloudflared:dev"

- name: Run Trivy vulnerability scanner
uses: aquasecurity/trivy-action@0.16.1
with:
image-ref: 'visibilityspots/cloudflared:dev'
format: 'template'
template: 'sarif'
output: 'trivy-results.sarif'
severity: 'CRITICAL,HIGH'

- name: Upload Trivy scan results to GitHub Security tab
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: 'trivy-results.sarif'

deploy:
needs: scan
needs: test
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/trivy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ jobs:
permissions:
contents: read
security-events: write
name: Build
runs-on: "ubuntu-latest"
steps:
- name: Checkout code
Expand All @@ -43,4 +42,4 @@ jobs:
- name: Upload Trivy scan results to GitHub Security tab
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: 'trivy-results.sarif'
sarf_file: 'trivy-results.sarif'

0 comments on commit 5b6d001

Please sign in to comment.