Skip to content

Commit 9bd86cc

Browse files
authored
Merge pull request #2 from fetch-kit/chore/chaos-proxy-go-release-security
chore: harden go release pipeline (pinned actions, govulncheck, depen…
2 parents 4503c3c + 3ce2c5f commit 9bd86cc

4 files changed

Lines changed: 57 additions & 9 deletions

File tree

.github/dependabot.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: gomod
4+
directory: "/"
5+
schedule:
6+
interval: weekly
7+
cooldown:
8+
default-days: 7
9+
open-pull-requests-limit: 10
10+
groups:
11+
go-modules:
12+
patterns:
13+
- "*"
14+
15+
- package-ecosystem: github-actions
16+
directory: "/"
17+
schedule:
18+
interval: weekly
19+
open-pull-requests-limit: 5
20+
groups:
21+
github-actions:
22+
patterns:
23+
- "*"

.github/workflows/ci.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,15 @@ on:
66
pull_request:
77

88
jobs:
9-
test:
9+
build-and-test:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@v4
13-
- uses: actions/setup-go@v5
12+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
13+
- uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5
1414
with:
15-
go-version: '1.25.1'
15+
go-version: '1.25.10'
16+
- name: Run govulncheck
17+
run: |
18+
go install golang.org/x/vuln/cmd/govulncheck@latest
19+
govulncheck ./...
1620
- run: go test -v ./...

.github/workflows/release.yml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,28 @@ on:
55
tags:
66
- 'v*.*.*'
77

8+
permissions: read-all
9+
810
jobs:
911
release:
1012
runs-on: ubuntu-latest
13+
permissions:
14+
contents: write
1115
steps:
12-
- uses: actions/checkout@v4
13-
- uses: actions/setup-go@v5
16+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
17+
- uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5
1418
with:
15-
go-version: '1.25.1'
19+
go-version: '1.25.10'
20+
- name: Run govulncheck
21+
run: |
22+
go install golang.org/x/vuln/cmd/govulncheck@latest
23+
govulncheck ./...
1624
- name: Run tests
1725
run: go test -v ./...
1826
- name: Set up GoReleaser
19-
uses: goreleaser/goreleaser-action@v5
27+
uses: goreleaser/goreleaser-action@5742e2a039330cbb23ebf35f046f814d4c6ff811 # v5
2028
with:
21-
version: latest
29+
version: v2.16.0
2230
args: release --clean
2331
env:
2432
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

SECURITY.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Security Policy
2+
3+
## Reporting a Vulnerability
4+
5+
Please **do not** open a public GitHub issue for security vulnerabilities.
6+
7+
Report vulnerabilities privately via [GitHub's private vulnerability reporting](https://github.com/fetch-kit/chaos-proxy-go/security/advisories/new).
8+
9+
Include as much detail as possible: steps to reproduce, potential impact, and any suggested fixes. We aim to acknowledge reports within 48 hours and provide a fix or mitigation plan within 14 days.
10+
11+
## Supported Versions
12+
13+
Only the latest published version on GitHub Releases receives security fixes.

0 commit comments

Comments
 (0)