-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Francisco de Borja Aranda Castillejo <[email protected]>
- Loading branch information
Francisco de Borja Aranda Castillejo
committed
Jul 23, 2024
1 parent
3106ecc
commit 1fa4aac
Showing
2 changed files
with
36 additions
and
28 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: 'Go vulnerability check' | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- '*' | ||
types: | ||
- synchronize | ||
- opened | ||
- reopened | ||
- ready_for_review | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
dependency-review: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Run govulncheck | ||
id: govulncheck | ||
uses: golang/govulncheck-action@v1 | ||
with: | ||
check-latest: true | ||
go-version-input: 1.22 | ||
go-package: ./... | ||
output-format: sarif | ||
output-file: govulncheck.sarif | ||
|
||
- name: Upload SARIF file | ||
uses: github/codeql-action/upload-sarif@v3 | ||
with: | ||
sarif_file: govulncheck.sarif |