Skip to content

ændring i workflows igen #10

ændring i workflows igen

ændring i workflows igen #10

Workflow file for this run

name: Build and Scan with Trivy
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build_and_scan:
name: Build, Scan and report
runs-on: ubuntu-latest
permissions:
security-events: write
contents: read
actions: read
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install trivy
uses: aquasecurity/trivy-action@master
with:
install-only: true
version: 'latest'
- name: Run trivy scan
run: |
trivy image --show-supressed --vex ./openvex.json docker.redpanda.com/redpandadata/console:v2.8.5
#- name: Upload Trivy scan results to GitHub Security tab
# if (indsæt ":" her) always()
# uses: github/codeql-action/upload-sarif@v3
# with:
# sarif_file: 'trivy-results.sarif'
# Change