Add temporary workflow to clear legacy Trivy alerts (#44942)
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
name: Close legacy trivy alerts
|
||||
on: workflow_dispatch
|
||||
permissions:
|
||||
security-events: write
|
||||
contents: read
|
||||
jobs:
|
||||
reset:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- run: |
|
||||
cat > clean.sarif <<'EOF'
|
||||
{
|
||||
"version": "2.1.0",
|
||||
"$schema": "https://json.schemastore.org/sarif-2.1.0.json",
|
||||
"runs": [{ "tool": { "driver": { "name": "Trivy" } }, "results": [] }]
|
||||
}
|
||||
EOF
|
||||
- uses: github/codeql-action/upload-sarif@v3
|
||||
with:
|
||||
sarif_file: clean.sarif
|
||||
category: .github/workflows/trivy-scan.yml:trivy
|
||||
Reference in New Issue
Block a user