Skip to content

Commit

Permalink
chore(ci): change trivy vulnerability scan for every day (aquasecurit…
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitriyLewen authored Mar 16, 2022
1 parent b2f554e commit 28cd5a5
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 16 deletions.
30 changes: 14 additions & 16 deletions .github/workflows/scan.yaml
Original file line number Diff line number Diff line change
@@ -1,25 +1,23 @@
name: Scan
on: [push, pull_request]
name: Scan vulnerabilities
on:
schedule:
- cron: '0 0 * * *'
workflow_dispatch:

jobs:
build:
name: Scan Go vulnerabilities
runs-on: ubuntu-18.04
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Run Trivy vulnerability scanner to scan for Critical Vulnerabilities
uses: aquasecurity/trivy-action@master
with:
scan-type: 'fs'
exit-code: '1'
severity: 'CRITICAL'
skip-dirs: integration,examples

- name: Run Trivy vulnerability scanner to scan for Medium and High Vulnerabilities
uses: aquasecurity/trivy-action@master
- name: Run Trivy vulnerability scanner and create GitHub issues
uses: knqyf263/[email protected]
with:
scan-type: 'fs'
exit-code: '0'
severity: 'HIGH,MEDIUM'
assignee: knqyf263
severity: CRITICAL
skip-dirs: integration,examples
label: vulnerability
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3 changes: 3 additions & 0 deletions misc/triage/labels.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -140,3 +140,6 @@ labels:
- name: help wanted
color: 006b75
description: Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.
- name: vulnerability
color: e11d21
description: Categorizes issue or PR as related to Trivy's own vulnerabilities.

0 comments on commit 28cd5a5

Please sign in to comment.