Skip to content

feat: Integrating grafana to display data #30

feat: Integrating grafana to display data

feat: Integrating grafana to display data #30

Workflow file for this run

name: trivy code scan
on:
push:
branches:
- master
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-20.04
steps:
- name: Checkout code
uses: actions/checkout@v3
- 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/upload-sarif@v2
with:
sarif_file: 'trivy-results.sarif'