mirror of
https://github.com/super-linter/super-linter.git
synced 2024-11-29 04:01:02 -05:00
ab24b82199
* Adding action lint * adding tests * adding tests * Update Dockerfile Co-authored-by: Masaya Suzuki <15100604+massongit@users.noreply.github.com> * cleanup name * fix test * typo * fix file name * fix our own errors * more cleanup * angry * make it happy * stop double jobs Co-authored-by: Masaya Suzuki <15100604+massongit@users.noreply.github.com>
46 lines
1.3 KiB
YAML
46 lines
1.3 KiB
YAML
# Disabling trivy scans while they get troubleshooting for failures
|
|
---
|
|
name: Container Security Scan with Trivy
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
pull_request:
|
|
jobs:
|
|
scan-container:
|
|
name: Build
|
|
runs-on: ubuntu-18.04
|
|
steps:
|
|
######################
|
|
# Checkout code base #
|
|
######################
|
|
- name: Checkout code
|
|
uses: actions/checkout@v2
|
|
|
|
# ##########################
|
|
# # Build the docker image #
|
|
# ##########################
|
|
- name: Build an image from Dockerfile
|
|
run: |
|
|
docker build -t "docker.io/github/super-linter:${{ github.sha }}" .
|
|
|
|
#################################
|
|
# 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@v1
|
|
if: always()
|
|
with:
|
|
sarif_file: 'report.sarif'
|