mirror of
				https://github.com/mealie-recipes/mealie.git
				synced 2025-11-03 18:53:17 -05:00 
			
		
		
		
	* Resolves GitHub Actions usage of deprecated command for setting output * Updates action versions to the latest released versions --------- Co-authored-by: Trenton Holmes <trenton.holmes@psware.com>
		
			
				
	
	
		
			32 lines
		
	
	
		
			757 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			32 lines
		
	
	
		
			757 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
name: Trivy Container Scanning
 | 
						|
 | 
						|
on:
 | 
						|
  workflow_call:
 | 
						|
 | 
						|
jobs:
 | 
						|
  build:
 | 
						|
    name: Build and Scan Container
 | 
						|
    runs-on: ubuntu-latest
 | 
						|
    strategy:
 | 
						|
      fail-fast: true
 | 
						|
    steps:
 | 
						|
      - name: Checkout code
 | 
						|
        uses: actions/checkout@v4
 | 
						|
 | 
						|
      - name: Build Dockerfile
 | 
						|
        run: |
 | 
						|
          docker build -t mealie --file=./docker/Dockerfile .
 | 
						|
 | 
						|
      - name: Run Trivy vulnerability scanner
 | 
						|
        uses: aquasecurity/trivy-action@master
 | 
						|
        with:
 | 
						|
          ignore-unfixed: true
 | 
						|
          image-ref: "mealie"
 | 
						|
          format: "sarif"
 | 
						|
          output: "trivy-results.sarif"
 | 
						|
 | 
						|
      - name: Upload Trivy scan results to GitHub Security tab
 | 
						|
        uses: github/codeql-action/upload-sarif@v2
 | 
						|
        with:
 | 
						|
          sarif_file: "trivy-results.sarif"
 |