Skip to content

Update Rust crate serde_json to v1.0.117 #7

Update Rust crate serde_json to v1.0.117

Update Rust crate serde_json to v1.0.117 #7

name: SBOM upload from Trivy
on:
push:
branches-ignore:
- "renovate-and-workflow-files"
workflow_dispatch: {}
jobs:
SBOM-upload:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Run Trivy vulnerability scanner in repo mode
uses: aquasecurity/[email protected]
with:
scan-type: 'fs'
ignore-unfixed: true
format: 'github'
output: 'trivy-results.gsbom'
- name: Upload report file
uses: actions/upload-artifact@v4
with:
name: trivy-results
path: trivy-results.gsbom
- name: Upload dependency graph
uses: actions/github-script@v7
with:
script: |
const fs = require('fs');
const fileContent = fs.readFileSync('trivy-results.gsbom', 'utf8');
const jsonContent = JSON.parse(fileContent);
await github.request(`POST /repos/${context.repo.owner}/${context.repo.repo}/dependency-graph/snapshots`, jsonContent);
result-encoding: string