ændring i workflows igen #10
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |