Skip to content

Commit

Permalink
Add actions for vulnerability scans (#6899)
Browse files Browse the repository at this point in the history
  • Loading branch information
g-gaston authored Oct 26, 2023
1 parent 3b3ef88 commit aa0e358
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/vulnerability.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: "Vulnerability scan"
on:
push:
tags:
- v*
branches:
- main
pull_request:
workflow_dispatch:
schedule:
# every day at 7am UTC
- cron: '0 7 * * *'
permissions:
contents: read
jobs:
dependency-review:
runs-on: ubuntu-latest
steps:
- name: "Checkout Repository"
uses: actions/checkout@v4
with:
show-progress: false
- name: "Dependency Review"
uses: actions/dependency-review-action@v3
govulncheck:
runs-on: ubuntu-latest
steps:
- name: "Checkout Repository"
uses: actions/checkout@v4
with:
show-progress: false
- name: govulncheck
uses: golang/govulncheck-action@v1
with:
repo-checkout: false
go-version-file: go.mod
- name: govulncheck for release module
uses: golang/govulncheck-action@v1
with:
repo-checkout: false
cache: false # cache will be already setup by previous step
work-dir: release
go-version-file: release/go.mod

0 comments on commit aa0e358

Please sign in to comment.