Skip to content

feat: Update GitHub actions jobs (#131) #131

feat: Update GitHub actions jobs (#131)

feat: Update GitHub actions jobs (#131) #131

Workflow file for this run

name: trivy code scan
on:
push:
branches:
- main
pull_request:
permissions:
contents: read
jobs:
trivy_scan:
permissions:
contents: read # for actions/checkout to fetch code
security-events: write # for github/codeql-action/upload-sarif to upload SARIF results
name: trivy scan
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Run Trivy vulnerability scanner in fs mode
uses: aquasecurity/trivy-action@master
with:
scan-type: 'fs'
scan-ref: '.'
format: 'sarif'
output: 'trivy-results.sarif'
trivy-config: ./github/.trivyConf.yaml
- name: Upload Trivy scan results to GitHub Security tab
uses: github/codeql-action/[email protected]
with:
sarif_file: 'trivy-results.sarif'