-
Notifications
You must be signed in to change notification settings - Fork 10
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
Showing
6 changed files
with
147 additions
and
61 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
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
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
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 |
---|---|---|
@@ -1,12 +1,42 @@ | ||
on: [push, pull_request] | ||
name: Security | ||
name: Gosec Security Scan | ||
|
||
on: | ||
push: | ||
branches: | ||
- "master" | ||
- "main" | ||
paths-ignore: | ||
- "**.md" | ||
- LICENSE | ||
- ".github/ISSUE_TEMPLATE/*.yml" | ||
- ".github/dependabot.yml" | ||
pull_request: | ||
branches: | ||
- "*" | ||
paths-ignore: | ||
- "**.md" | ||
- LICENSE | ||
- ".github/ISSUE_TEMPLATE/*.yml" | ||
- ".github/dependabot.yml" | ||
|
||
jobs: | ||
Gosec: | ||
gosec-scan: | ||
runs-on: ubuntu-latest | ||
env: | ||
GO111MODULE: on | ||
steps: | ||
- name: Fetch Repository | ||
uses: actions/checkout@v3 | ||
- name: Run Gosec | ||
uses: securego/gosec@master | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
args: -exclude-dir=internal/*/ ./... | ||
go-version: 'oldstable' | ||
check-latest: true | ||
cache: false | ||
|
||
- name: Install Gosec | ||
run: go install github.com/securego/gosec/v2/cmd/gosec@latest | ||
|
||
- name: Run Gosec | ||
run: gosec -exclude-dir=internal ./... |
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
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 |
---|---|---|
@@ -1,19 +1,38 @@ | ||
on: [push, pull_request_target] | ||
name: Vulnerability Check | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
- main | ||
paths: | ||
- "**" | ||
- "!docs/**" | ||
- "!**.md" | ||
pull_request: | ||
paths: | ||
- "**" | ||
- "!docs/**" | ||
- "!**.md" | ||
|
||
jobs: | ||
Security: | ||
govulncheck-check: | ||
runs-on: ubuntu-latest | ||
env: | ||
GO111MODULE: on | ||
steps: | ||
- name: Install Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: 1.19.x | ||
- name: Fetch Repository | ||
uses: actions/checkout@v3 | ||
- name: Install Govulncheck | ||
run: | | ||
export GO111MODULE=on | ||
export PATH=${PATH}:`go env GOPATH`/bin | ||
go install golang.org/x/vuln/cmd/govulncheck@latest | ||
- name: Run Govulncheck | ||
run: "`go env GOPATH`/bin/govulncheck ./..." | ||
- name: Fetch Repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: "stable" | ||
check-latest: true | ||
cache: false | ||
|
||
- name: Install Govulncheck | ||
run: go install golang.org/x/vuln/cmd/govulncheck@latest | ||
|
||
- name: Run Govulncheck | ||
run: govulncheck ./... |