mirror of
https://github.com/super-linter/super-linter.git
synced 2024-12-23 07:42:13 -05:00
23e8ced872
* Fix issues in the build workflow * Don't build the image when running trivy * Move the alpine glibc package key in the repo * Move the alpine glibc package key in the repo * Update labels * Pull and tag
45 lines
1.2 KiB
YAML
45 lines
1.2 KiB
YAML
# Disabling trivy scans while they get troubleshooting for failures
|
|
---
|
|
name: Trivy Container Scan
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
scan-container:
|
|
permissions:
|
|
contents: read # for actions/checkout to fetch code
|
|
security-events: write # for github/codeql-action/upload-sarif to upload SARIF results
|
|
name: Build
|
|
runs-on: ubuntu-18.04
|
|
timeout-minutes: 60
|
|
steps:
|
|
######################
|
|
# Checkout code base #
|
|
######################
|
|
- name: Checkout code
|
|
uses: actions/checkout@v3
|
|
|
|
#################################
|
|
# Run Trivy Scan of source code #
|
|
#################################
|
|
- name: Trivy Scan
|
|
uses: aquasecurity/trivy-action@master
|
|
with:
|
|
scan-type: 'fs'
|
|
format: 'template'
|
|
template: '@/contrib/sarif.tpl'
|
|
output: 'report.sarif'
|
|
severity: 'HIGH,CRITICAL'
|
|
|
|
#################################
|
|
# Upload report to security tab #
|
|
#################################
|
|
- name: Upload Trivy scan results to GitHub Security tab
|
|
uses: github/codeql-action/upload-sarif@v2
|
|
with:
|
|
sarif_file: 'report.sarif'
|