This repository has been archived by the owner on Sep 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cb8483d
commit 71831fa
Showing
1 changed file
with
37 additions
and
0 deletions.
There are no files selected for viewing
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,37 @@ | ||
|
||
name: Security Build | ||
on: | ||
push: | ||
workflow_dispatch: {} | ||
|
||
|
||
jobs: | ||
golangci: | ||
name: lint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/setup-go@v3 | ||
with: | ||
go-version: 1.17 | ||
- uses: actions/checkout@v3 | ||
- name: golangci-lint | ||
uses: golangci/golangci-lint-action@v3 | ||
with: | ||
version: latest | ||
|
||
govuln: | ||
name: Run govuln check and Publish | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Running govulncheck | ||
uses: Templum/[email protected] | ||
continue-on-error: true | ||
env: | ||
DEBUG: "true" | ||
with: | ||
go-version: 1.18 # this mush match your code's golang version | ||
vulncheck-version: latest | ||
package: ./... | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
fail-on-vuln: true |