Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
version: 2
updates:
- package-ecosystem: gomod
directory: "/"
schedule:
interval: weekly
day: monday
time: "06:00"
timezone: Etc/UTC
open-pull-requests-limit: 5
groups:
gomod-security:
applies-to: security-updates
patterns:
- "*"
gomod-minor-patch:
applies-to: version-updates
update-types:
- minor
- patch

- package-ecosystem: github-actions
directory: "/"
schedule:
interval: weekly
day: monday
open-pull-requests-limit: 3
groups:
actions:
patterns:
- "*"
48 changes: 48 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: CodeQL

on:
push:
branches: [master, main]
pull_request:
branches: [master, main]
schedule:
- cron: '17 6 * * 1'

permissions:
actions: read
contents: read
security-events: write

jobs:
analyze:
name: Analyze (Go)
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Checkout this repo
uses: actions/checkout@v4
with:
path: api
- name: Checkout sibling InstaNode-dev/common
uses: actions/checkout@v4
with:
repository: InstaNode-dev/common
path: common
- name: Checkout sibling InstaNode-dev/proto
uses: actions/checkout@v4
with:
repository: InstaNode-dev/proto
path: proto
- uses: actions/setup-go@v5
with:
go-version-file: api/go.mod
- uses: github/codeql-action/init@v3
with:
languages: go
queries: security-extended
- name: Build
working-directory: api
run: go build ./...
- uses: github/codeql-action/analyze@v3
with:
category: "/language:go"
39 changes: 39 additions & 0 deletions .github/workflows/govulncheck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: govulncheck

on:
push:
branches: [master, main]
pull_request:
branches: [master, main]
schedule:
- cron: '0 6 * * *'

permissions:
contents: read

jobs:
govulncheck:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Checkout this repo
uses: actions/checkout@v4
with:
path: api
- name: Checkout sibling InstaNode-dev/common
uses: actions/checkout@v4
with:
repository: InstaNode-dev/common
path: common
- name: Checkout sibling InstaNode-dev/proto
uses: actions/checkout@v4
with:
repository: InstaNode-dev/proto
path: proto
- uses: actions/setup-go@v5
with:
go-version-file: api/go.mod
check-latest: true
- run: go install golang.org/x/vuln/cmd/govulncheck@latest
- working-directory: api
run: govulncheck ./...
22 changes: 22 additions & 0 deletions .github/workflows/osv-scanner.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: OSV-Scanner

on:
push:
branches: [master, main]
pull_request:
branches: [master, main]
schedule:
- cron: '0 6 * * *'

permissions:
actions: read
contents: read
security-events: write

jobs:
scan:
uses: google/osv-scanner-action/.github/workflows/osv-scanner-reusable.yml@v2.0.1
permissions:
actions: read
contents: read
security-events: write
2 changes: 2 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ module instant.dev

go 1.25.0

toolchain go1.25.10

require (
github.com/DATA-DOG/go-sqlmock v1.5.2
github.com/alicebob/miniredis/v2 v2.37.0
Expand Down
Loading