removing sast - updated dockerfile for best practies
Build and Push Docker Image / build (push) Successful in 39s
Build and Push Docker Image / build (push) Successful in 39s
This commit is contained in:
@@ -8,27 +8,27 @@ on:
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: read # Required to checkout and read repo files
|
||||
security-events: write # Required to upload SARIF files to Security tab
|
||||
# permissions:
|
||||
# contents: read # Required to checkout and read repo files
|
||||
# security-events: write # Required to upload SARIF files to Security tab
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Run Trivy vulnerability scanner in repo mode
|
||||
uses: aquasecurity/trivy-action@v0.36.0
|
||||
with:
|
||||
scan-type: 'fs'
|
||||
ignore-unfixed: true
|
||||
format: 'sarif'
|
||||
output: 'trivy-results.sarif'
|
||||
severity: 'CRITICAL,HIGH'
|
||||
# - name: Run Trivy vulnerability scanner in repo mode
|
||||
# uses: aquasecurity/trivy-action@v0.36.0
|
||||
# with:
|
||||
# scan-type: 'fs'
|
||||
# ignore-unfixed: true
|
||||
# format: 'sarif'
|
||||
# output: 'trivy-results.sarif'
|
||||
# severity: 'CRITICAL,HIGH'
|
||||
|
||||
- name: Upload Trivy scan results to GitHub Security tab
|
||||
uses: github/codeql-action/upload-sarif@v4
|
||||
with:
|
||||
sarif_file: 'trivy-results.sarif'
|
||||
# - name: Upload Trivy scan results to GitHub Security tab
|
||||
# uses: github/codeql-action/upload-sarif@v4
|
||||
# with:
|
||||
# sarif_file: 'trivy-results.sarif'
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
Reference in New Issue
Block a user