Skip to content

Commit

Permalink
cat
Browse files Browse the repository at this point in the history
Signed-off-by: Sertac Ozercan <[email protected]>
  • Loading branch information
sozercan committed Jan 16, 2024
1 parent 434202a commit 1093176
Showing 1 changed file with 15 additions and 13 deletions.
28 changes: 15 additions & 13 deletions .github/workflows/patch-models.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ jobs:
fail-fast: false
matrix:
images:
- ghcr.io/sozercan/test/llama2:7b
- ghcr.io/sozercan/test/llama2:13b
- ghcr.io/sozercan/test/orca2:13b
# - ghcr.io/sozercan/mixtral:8x7b
- ghcr.io/sozercan/test/llama2:7b-cuda
- ghcr.io/sozercan/test/llama2:13b-cuda
- ghcr.io/sozercan/test/orca2:13b-cuda
# - ghcr.io/sozercan/mixtral:8x7b-cuda
- ghcr.io/sozercan/llama2:7b
- ghcr.io/sozercan/llama2:13b
- ghcr.io/sozercan/orca2:13b
- ghcr.io/sozercan/mixtral:8x7b
- ghcr.io/sozercan/llama2:7b-cuda
- ghcr.io/sozercan/llama2:13b-cuda
- ghcr.io/sozercan/orca2:13b-cuda
- ghcr.io/sozercan/mixtral:8x7b-cuda

steps:
- name: Set up Docker Buildx
Expand All @@ -40,18 +40,19 @@ jobs:
- name: Generate Trivy Report
uses: aquasecurity/trivy-action@d43c1f16c00cfd3978dde6c07f4bbcf9eb6993ca # 0.16.1
with:
timeout: 60m
scan-type: 'image'
format: 'json'
output: 'report.json'
ignore-unfixed: true
vuln-type: 'os'
image-ref: ${{ matrix.images }}

- name: Check Vuln Count
- name: Check vulnerability count
id: vuln_count
run: |
report_file="report.json"
vuln_count=$(jq '.Results | length' "$report_file")
cat report.json | jq
vuln_count=$(jq '.Results[0].Vulnerabilities | length' report.json)
echo "vuln_count=$vuln_count" >> $GITHUB_OUTPUT
- name: Copa Action
Expand All @@ -66,5 +67,6 @@ jobs:
- name: Docker Push Patched Image
if: steps.copa.conclusion == 'success'
run: |
docker tag ${{ steps.copa.outputs.patched-image }} ${{ matrix.images }}-test
docker push ${{ matrix.images }}-test
docker tag ${{ steps.copa.outputs.patched-image }} ${{ matrix.images }}
docker images
# docker push ${{ matrix.images }}-test

0 comments on commit 1093176

Please sign in to comment.