Skip to content

Commit

Permalink
Add Trivy (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
pperzyna authored Mar 2, 2021
1 parent c280c43 commit cab48fa
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/trivy-aqua.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Trivy Aqua

on:
workflow_dispatch:
# Uncomment when PR62 is merged
# https://github.com/lazy-actions/gitrivy/pull/62
# schedule:
# - cron: '0 4 * * MON'

env:
REGISTRY: containersol/locust_exporter

jobs:
trivy-scan:
name: Scan
runs-on: ubuntu-latest
timeout-minutes: 10
steps:

- name: Container - Login
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USER }}
password: ${{ secrets.DOCKERHUB_PASS }}

- name: Container - Pull
run: docker pull ${{ env.REGISTRY }}:latest

- name: Container - Scan
uses: homoluctus/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
image: ${{ env.REGISTRY }}:latest

0 comments on commit cab48fa

Please sign in to comment.