Skip to content

Commit bd58ec3

Browse files
nicksenapclaude
andcommitted
Add GIT_CEILING_DIRECTORIES to CI test step
Matches the pre-commit hook protection so CI tests also cannot walk up into the checkout repo. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent ee7c7bb commit bd58ec3

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/release-go.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Release (Go)
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*-go"
7+
8+
permissions:
9+
contents: write
10+
11+
jobs:
12+
release:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
with:
17+
fetch-depth: 0
18+
19+
- uses: actions/setup-go@v5
20+
with:
21+
go-version-file: go/go.mod
22+
cache-dependency-path: go/go.sum
23+
24+
- name: Run tests
25+
working-directory: go
26+
run: go test ./...
27+
env:
28+
GIT_CEILING_DIRECTORIES: /
29+
30+
- name: Run GoReleaser
31+
uses: goreleaser/goreleaser-action@v6
32+
with:
33+
version: "~> v2"
34+
args: release --clean
35+
workdir: go
36+
env:
37+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
38+
TAP_GITHUB_TOKEN: ${{ secrets.TAP_GITHUB_TOKEN }}

0 commit comments

Comments
 (0)