Skip to content

Commit 5fa0d43

Browse files
authored
fix: resolve 8 dependabot security alerts + automated dependency management (#76)
fix: resolve 8 dependabot security alerts + automated dependency management
2 parents 36c5639 + 6007ccd commit 5fa0d43

12 files changed

Lines changed: 2399 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: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,36 @@ 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: Install system deps (Wails CGO)
134+
run: |
135+
sudo apt-get update
136+
sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.1-dev
137+
138+
- name: Run govulncheck
139+
run: |
140+
go install golang.org/x/vuln/cmd/govulncheck@latest
141+
govulncheck ./internal/... || true
142+
113143
frontend-tests:
114144
name: Frontend Tests
115145
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

0 commit comments

Comments
 (0)