Skip to content

Commit 1061c59

Browse files
ci: scanner workflows clone sibling proto repo
The Tier 1 CodeQL + govulncheck workflows failed on PR #16 because common uses `replace instant.dev/proto => ../proto` in go.mod. Fix: each workflow now checks out common into ./common, plus clones the public sibling repo InstaNode-dev/proto. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 8eb9606 commit 1061c59

2 files changed

Lines changed: 25 additions & 6 deletions

File tree

.github/workflows/codeql.yml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,25 @@ jobs:
1919
runs-on: ubuntu-latest
2020
timeout-minutes: 30
2121
steps:
22-
- uses: actions/checkout@v4
22+
- name: Checkout this repo
23+
uses: actions/checkout@v4
24+
with:
25+
path: common
26+
- name: Checkout sibling InstaNode-dev/proto
27+
uses: actions/checkout@v4
28+
with:
29+
repository: InstaNode-dev/proto
30+
path: proto
2331
- uses: actions/setup-go@v5
2432
with:
25-
go-version-file: go.mod
33+
go-version-file: common/go.mod
2634
- uses: github/codeql-action/init@v3
2735
with:
2836
languages: go
2937
queries: security-extended
30-
- run: go build ./...
38+
- name: Build
39+
working-directory: common
40+
run: go build ./...
3141
- uses: github/codeql-action/analyze@v3
3242
with:
3343
category: "/language:go"

.github/workflows/govulncheck.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,19 @@ jobs:
1616
runs-on: ubuntu-latest
1717
timeout-minutes: 15
1818
steps:
19-
- uses: actions/checkout@v4
19+
- name: Checkout this repo
20+
uses: actions/checkout@v4
21+
with:
22+
path: common
23+
- name: Checkout sibling InstaNode-dev/proto
24+
uses: actions/checkout@v4
25+
with:
26+
repository: InstaNode-dev/proto
27+
path: proto
2028
- uses: actions/setup-go@v5
2129
with:
22-
go-version-file: go.mod
30+
go-version-file: common/go.mod
2331
check-latest: true
2432
- run: go install golang.org/x/vuln/cmd/govulncheck@latest
25-
- run: govulncheck ./...
33+
- working-directory: common
34+
run: govulncheck ./...

0 commit comments

Comments
 (0)