first commit
testing main branch / support-ed25519-key (push) Canceled after 0s
testing main branch / testing-with-env (push) Canceled after 0s
testing main branch / testing ipv6 (push) Canceled after 0s
testing main branch / some special character (push) Canceled after 0s
testing main branch / testing-capturing-output (push) Canceled after 0s
testing main branch / testing-script-stop (push) Canceled after 0s
testing main branch / windows-binary-download (push) Canceled after 0s
testing main branch / testing-script-error (push) Canceled after 0s
testing main branch / default-user-name-password (push) Canceled after 2s
testing main branch / check-ssh-key (push) Canceled after 2s
testing main branch / support-key-passphrase (push) Canceled after 2s
testing main branch / multiple-server (push) Canceled after 2s
testing stable version / default-user-name-password (push) Canceled after 0s
testing stable version / check-ssh-key (push) Canceled after 0s
testing stable version / support-key-passphrase (push) Canceled after 0s
testing stable version / multiple-server (push) Canceled after 0s
testing stable version / support-ed25519-key (push) Canceled after 0s
testing stable version / testing-with-env (push) Canceled after 0s
testing main branch / support-ed25519-key (push) Canceled after 0s
testing main branch / testing-with-env (push) Canceled after 0s
testing main branch / testing ipv6 (push) Canceled after 0s
testing main branch / some special character (push) Canceled after 0s
testing main branch / testing-capturing-output (push) Canceled after 0s
testing main branch / testing-script-stop (push) Canceled after 0s
testing main branch / windows-binary-download (push) Canceled after 0s
testing main branch / testing-script-error (push) Canceled after 0s
testing main branch / default-user-name-password (push) Canceled after 2s
testing main branch / check-ssh-key (push) Canceled after 2s
testing main branch / support-key-passphrase (push) Canceled after 2s
testing main branch / multiple-server (push) Canceled after 2s
testing stable version / default-user-name-password (push) Canceled after 0s
testing stable version / check-ssh-key (push) Canceled after 0s
testing stable version / support-key-passphrase (push) Canceled after 0s
testing stable version / multiple-server (push) Canceled after 0s
testing stable version / support-ed25519-key (push) Canceled after 0s
testing stable version / testing-with-env (push) Canceled after 0s
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
name: Trivy Security Scan
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: '0 0 * * *'
|
||||
pull_request:
|
||||
branches:
|
||||
- master
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
trivy-scan:
|
||||
name: Trivy Security Scan
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: read
|
||||
security-events: write
|
||||
actions: read
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v7
|
||||
|
||||
- name: Run Trivy vulnerability scanner in repo mode
|
||||
uses: aquasecurity/trivy-action@v0.36.0
|
||||
with:
|
||||
scan-type: 'fs'
|
||||
scan-ref: '.'
|
||||
scanners: 'vuln,secret,misconfig'
|
||||
format: 'sarif'
|
||||
output: 'trivy-results.sarif'
|
||||
severity: 'CRITICAL,HIGH,MEDIUM'
|
||||
exit-code: '1'
|
||||
|
||||
- name: Upload Trivy results to GitHub Security tab
|
||||
uses: github/codeql-action/upload-sarif@v4
|
||||
if: always()
|
||||
with:
|
||||
sarif_file: 'trivy-results.sarif'
|
||||
Reference in New Issue
Block a user