Skip to content

code security

code security #644

Workflow file for this run

name: code security
on:
push:
branches:
- main
paths:
- "src/**"
- "Cargo.*"
pull_request:
branches:
- main
paths:
- "src/**"
- "Cargo.*"
schedule:
- cron: "0 5 * * *"
jobs:
trivy-scan:
name: code scan
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Scan
uses: aquasecurity/trivy-action@master
with:
scan-type: fs
scan-ref: "."
scanners: vuln
format: sarif
output: trivy-results.sarif
- name: Upload Report
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: trivy-results.sarif