Skip to content

Commit

Permalink
ci: move vulncheck to a separate workflow
Browse files Browse the repository at this point in the history
Signed-off-by: VirtualTam <virtualtam@flibidi.net>
  • Loading branch information
virtualtam committed May 11, 2024
1 parent 9d22349 commit c9be3f5
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 9 deletions.
9 changes: 0 additions & 9 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,3 @@ jobs:

- name: Test
run: make cover

vulnerabilities:
runs-on: ubuntu-latest
steps:
- name: Vulnerabilities
id: govulncheck
uses: golang/govulncheck-action@v1
with:
go-version-file: go.mod
24 changes: 24 additions & 0 deletions .github/workflows/vulncheck.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
name: Vulnerabilities

on:
push:
branches:
- main
tags:
- v*
pull_request: {}

jobs:
vulnerabilities:
runs-on: ubuntu-latest
steps:
- name: vulncheck
id: govulncheck
uses: golang/govulncheck-action@v1
with:
# The setup-go action does not necessarily use the latest Go patch release.
# As such, this job may fail due to vulnerabilities present in previous
# patch releases (including the one used by the setup-go action).
# See https://github.com/actions/setup-go/issues/407
go-version-file: go.mod

0 comments on commit c9be3f5

Please sign in to comment.