Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sending trivy CVEs to Jira #20

Merged
merged 13 commits into from
Aug 21, 2024
14 changes: 14 additions & 0 deletions .github/workflows/scan_images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,3 +82,17 @@ jobs:
env:
TRIVY_USERNAME: ${{ github.actor }}
TRIVY_PASSWORD: ${{ github.token }}
- name: Send vulnerability records to jira
if: ${{ inputs.upload-result }}
run: |
# get script that sends scan results from Kubeflow CI repo
CI_REPO="https://github.com/canonical/kubeflow-ci.git"
mkdir -p kubeflow-ci
cd kubeflow-ci
git init -q
git remote add -f origin "$CI_REPO" &> /dev/null
git sparse-checkout set scripts/cve-reports/send-scan.py
git pull -q origin main
cd -
# send scans from supplied directory
./kubeflow-ci/scripts/cve-reports/send-scan.py --report-path=trivy-results.sarif --jira-url=${{ secrets.JIRA_URL }} --add-github-meta
Loading