File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11{
2- "image" : " mcr.microsoft.com/devcontainers/go:1.25" ,
3- "features" : {
4- "ghcr.io/devcontainers/features/sshd:1" : {}
5- },
6- "remoteUser" : " vscode" ,
7- "customizations" : {
8- "vscode" : {
9- "extensions" : [
10- " golang.go"
11- ],
12- "settings" : {
13- "go.toolsManagement.checkForUpdates" : " local" ,
14- "go.useLanguageServer" : true ,
15- "go.gopath" : " /go"
16- }
17- }
18- },
19- "runArgs" : [
20- " --cap-add=SYS_PTRACE" ,
21- " --security-opt" ,
22- " seccomp=unconfined"
23- ]
24- }
2+ "name" : " CLI Dev Environment" ,
3+ "image" : " mcr.microsoft.com/devcontainers/base:ubuntu" ,
4+
5+ "features" : {
6+ "ghcr.io/devcontainers/features/github-cli:1" : {},
7+ "ghcr.io/devcontainers/features/powershell:1" : {}
8+ },
9+
10+ "postCreateCommand" : " gh auth status || gh auth login" ,
11+
12+ "customizations" : {
13+ "vscode" : {
14+ "extensions" : [
15+ " github.vscode-github-actions"
16+ ]
17+ }
18+ }
19+ }
Original file line number Diff line number Diff line change 11name : Go Vulnerability Check
2+
23on :
4+ push :
5+ branches : [main]
36 schedule :
4- - cron : " 0 0 * * 1" # Every Monday at midnight UTC
7+ - cron : " 0 0 * * 1"
58 workflow_dispatch :
69
710jobs :
811 govulncheck :
912 runs-on : ubuntu-latest
13+
1014 permissions :
1115 contents : read
1216 security-events : write
17+
1318 steps :
1419 - name : Check out code
15- uses : actions/checkout@v6
20+ uses : actions/checkout@v4
1621
1722 - name : Set up Go
18- uses : actions/setup-go@v6
23+ uses : actions/setup-go@v4
1924 with :
2025 go-version-file : ' go.mod'
2126
22- # `govulncheck -format sarif` exits successfully regardless of results, which are not in stdout.
23- # See https://pkg.go.dev/golang.org/x/vuln/cmd/govulncheck#hdr-Exit_codes for more information on exit codes.
24- - name : Check Go vulnerabilities
27+ - name : Install govulncheck
28+ run : go install golang.org/x/vuln/cmd/govulncheck@latest
29+
30+ - name : Run vulnerability scan
2531 run : |
26- go run golang.org/x/vuln/cmd/ govulncheck@d1f380186385b4f64e00313f31743df8e4b89a77 -format sarif ./... > gh.sarif
32+ govulncheck -format sarif ./... > gh.sarif
2733
2834 - name : Upload SARIF report
29- uses : github/codeql-action/upload-sarif@v4
35+ uses : github/codeql-action/upload-sarif@v3
3036 with :
31- sarif_file : gh.sarif
37+ sarif_file : gh.sarif
You can’t perform that action at this time.
0 commit comments