Skip to content

Commit 534a08e

Browse files
committed
fix: resolve 8 dependabot security alerts + add automated dep mgmt
- go: upgrade gomarkdown/markdown (HIGH CVE-2026-40890) - go: upgrade go-git/go-git/v5 v5.16.4 -> v5.18.0 (4 CVEs: #37/#33/#32/#22) - npm: add postcss >=8.5.10 override (MEDIUM CVE-2026-41305) - ci: add govulncheck job + sarif upload to security tab - ci: add dependency-review workflow (blocks PRs with known vulns) - ci: add dependabot-auto-merge for semver-patch/minor bumps - chore: enable weekly dependabot for gomod, npm, github-actions - chore: remove stale package-lock.json (bun.lockb is canonical)
1 parent b9e9a61 commit 534a08e

10 files changed

Lines changed: 240 additions & 8705 deletions

File tree

.github/dependabot.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "gomod"
4+
directory: "/"
5+
schedule:
6+
interval: "weekly"
7+
vendor: true
8+
9+
- package-ecosystem: "npm"
10+
directory: "/frontend"
11+
schedule:
12+
interval: "weekly"
13+
versioning-strategy: increase
14+
15+
- package-ecosystem: "github-actions"
16+
directory: "/"
17+
schedule:
18+
interval: "weekly"

.github/workflows/ci.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,37 @@ jobs:
110110
recreate: true
111111
path: code-coverage-results.md
112112

113+
govulncheck:
114+
name: Go Vulnerability Check
115+
needs: build
116+
runs-on: ubuntu-latest
117+
permissions:
118+
contents: read
119+
security-events: write
120+
121+
steps:
122+
- name: Checkout
123+
uses: actions/checkout@v4
124+
125+
- name: Setup Go
126+
uses: actions/setup-go@v5
127+
with:
128+
go-version: "1.25.0"
129+
check-latest: true
130+
cache: true
131+
cache-dependency-path: go.sum
132+
133+
- name: Run govulncheck
134+
run: |
135+
go install golang.org/x/vuln/cmd/govulncheck@latest
136+
govulncheck -format sarif ./... > govulncheck.sarif || true
137+
138+
- name: Upload govulncheck results
139+
if: always()
140+
uses: github/codeql-action/upload-sarif@v3
141+
with:
142+
sarif_file: govulncheck.sarif
143+
113144
frontend-tests:
114145
name: Frontend Tests
115146
needs: build
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Dependabot auto-merge
2+
on: pull_request
3+
4+
permissions:
5+
contents: write
6+
pull-requests: write
7+
8+
jobs:
9+
dependabot:
10+
runs-on: ubuntu-latest
11+
if: github.event.pull_request.user.login == 'dependabot[bot]'
12+
steps:
13+
- name: Dependabot metadata
14+
id: metadata
15+
uses: dependabot/fetch-metadata@v2
16+
- name: Enable auto-merge for Dependabot PRs
17+
if: steps.metadata.outputs.update-type == 'version-update:semver-patch' || steps.metadata.outputs.update-type == 'version-update:semver-minor'
18+
run: gh pr merge --auto --merge "$PR_URL"
19+
env:
20+
PR_URL: ${{github.event.pull_request.html_url}}
21+
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Dependency Review
2+
on: pull_request
3+
4+
permissions:
5+
contents: read
6+
7+
jobs:
8+
dependency-review:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@v4
13+
- name: Dependency Review
14+
uses: actions/dependency-review-action@v4

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,4 @@ frontend/test-results/
1818
test-results/
1919
frontend/playwright-report/
2020
playwright-report/
21+
package-lock.json

frontend/bun.lock

Lines changed: 143 additions & 138 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)